Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-22 01:02:34 +0400
committerJunio C Hamano <gitster@pobox.com>2013-03-22 01:02:34 +0400
commitf5715de54a2237025a74704cb41f5404c743a2c3 (patch)
tree38f7021336ab39c6dfdc9a46880939482f5489c5 /cache.h
parente4e1c5499056de58f7df207cf41274a321857c77 (diff)
parent1a20dd49f8c4e6c62080f267ca77b357cb61be8e (diff)
Merge branch 'nd/count-garbage'
"git count-objects -v" did not count leftover temporary packfiles and other kinds of garbage. * nd/count-garbage: count-objects: report how much disk space taken by garbage files count-objects: report garbage files in pack directory too sha1_file: reorder code in prepare_packed_git_one() git-count-objects.txt: describe each line in -v output
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 6818d87fa0..c56315ccc3 100644
--- a/cache.h
+++ b/cache.h
@@ -1058,6 +1058,9 @@ extern const char *parse_feature_value(const char *feature_list, const char *fea
extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_path);
+/* A hook for count-objects to report invalid files in pack directory */
+extern void (*report_garbage)(const char *desc, const char *path);
+
extern void prepare_packed_git(void);
extern void reprepare_packed_git(void);
extern void install_packed_git(struct packed_git *pack);