]> git.ipfire.org Git - thirdparty/git.git/commit
path: stop relying on `the_repository` when reporting garbage
authorPatrick Steinhardt <ps@pks.im>
Tue, 13 Aug 2024 09:13:31 +0000 (11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2024 17:01:01 +0000 (10:01 -0700)
commit78f2210b3c8605144d62a90b58e888312f64efc8
treeaa927ec5288bffdbe235a1f13bb04435a0fd8b01
parent169c979771158ddc3310f7a1e0e141fd7d0ed088
path: stop relying on `the_repository` when reporting garbage

We access `the_repository` in `report_linked_checkout_garbage()` both
directly and indirectly via `get_git_dir()`. Remove this dependency by
instead passing a `struct repository` as parameter.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/count-objects.c
path.c
path.h