diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:01 +0200 |
commit | 78f2210b3c8605144d62a90b58e888312f64efc8 (patch) | |
tree | aa927ec5288bffdbe235a1f13bb04435a0fd8b01 /path.h | |
parent | hooks: remove implicit dependency on `the_repository` (diff) | |
download | git-78f2210b3c8605144d62a90b58e888312f64efc8.tar.xz git-78f2210b3c8605144d62a90b58e888312f64efc8.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | path.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -158,7 +158,7 @@ int strbuf_git_path_submodule(struct strbuf *sb, const char *path, const char *fmt, ...) __attribute__((format (printf, 3, 4))); -void report_linked_checkout_garbage(void); +void report_linked_checkout_garbage(struct repository *r); /* * You can define a static memoized git path like: |