diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-11-30 09:24:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-12-01 20:00:18 +0100 |
commit | 77a6d84045c8b558d1e08ff2ffe70347b19be6ef (patch) | |
tree | d233e6d0b456a28b1102294f8ebc8e37f9a2f2f2 /cache.h | |
parent | gc: support prune --worktrees (diff) | |
download | git-77a6d84045c8b558d1e08ff2ffe70347b19be6ef.tar.xz git-77a6d84045c8b558d1e08ff2ffe70347b19be6ef.zip |
count-objects: report unused files in $GIT_DIR/worktrees/...
In linked checkouts, borrowed parts like config is taken from
$GIT_COMMON_DIR. $GIT_DIR/config is never used. Report them as
garbage.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -695,6 +695,7 @@ extern const char *mkpath(const char *fmt, ...) __attribute__((format (printf, 1 extern const char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2))); extern const char *git_path_submodule(const char *path, const char *fmt, ...) __attribute__((format (printf, 2, 3))); +extern void report_linked_checkout_garbage(void); /* * Return the name of the file in the local object database that would |