diff options
author | Nicolas Pitre <nico@cam.org> | 2008-02-28 00:25:19 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-03-01 01:44:46 -0800 |
commit | 70f5d5d31cbf0ba273083805124ad67135142527 (patch) | |
tree | df1b87792491cef00f2e509ae93252ea00ab130e /pack-check.c | |
parent | 340814636dde3cbd2e461b12f9ae832d2100766a (diff) | |
download | git-70f5d5d31cbf0ba273083805124ad67135142527.tar.gz |
fix unimplemented packed_object_info_detail() features
Since commit eb32d236df0c16b936b04f0c5402addb61cdb311, there was a TODO
comment in packed_object_info_detail() about the SHA1 of base object to
OBJ_OFS_DELTA objects. So here it is at last.
While at it, providing the actual storage size information as well is now
trivial.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-check.c')
-rw-r--r-- | pack-check.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pack-check.c b/pack-check.c index d7dd62bb83..ae25685036 100644 --- a/pack-check.c +++ b/pack-check.c @@ -1,5 +1,6 @@ #include "cache.h" #include "pack.h" +#include "pack-revindex.h" struct idx_entry { @@ -101,8 +102,10 @@ static int verify_packfile(struct packed_git *p, static void show_pack_info(struct packed_git *p) { uint32_t nr_objects, i, chain_histogram[MAX_CHAIN+1]; + nr_objects = p->num_objects; memset(chain_histogram, 0, sizeof(chain_histogram)); + init_pack_revindex(); for (i = 0; i < nr_objects; i++) { const unsigned char *sha1; |