diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-21 14:02:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-21 14:02:34 -0700 |
commit | f5715de54a2237025a74704cb41f5404c743a2c3 (patch) | |
tree | 38f7021336ab39c6dfdc9a46880939482f5489c5 /cache.h | |
parent | e4e1c5499056de58f7df207cf41274a321857c77 (diff) | |
parent | 1a20dd49f8c4e6c62080f267ca77b357cb61be8e (diff) | |
download | git-f5715de54a2237025a74704cb41f5404c743a2c3.tar.gz |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |