summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-11-30 08:24:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-01 19:00:18 (GMT)
commit77a6d84045c8b558d1e08ff2ffe70347b19be6ef (patch)
treed233e6d0b456a28b1102294f8ebc8e37f9a2f2f2 /cache.h
parente3df33bb1b14207848ff339ca27644a01ef17c26 (diff)
downloadgit-77a6d84045c8b558d1e08ff2ffe70347b19be6ef.zip
git-77a6d84045c8b558d1e08ff2ffe70347b19be6ef.tar.gz
git-77a6d84045c8b558d1e08ff2ffe70347b19be6ef.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 43c2e52..670e861 100644
--- a/cache.h
+++ b/cache.h
@@ -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