summaryrefslogtreecommitdiff
path: root/pack-check.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2008-06-23 21:22:14 -0400
committerJunio C Hamano <gitster@pobox.com>2008-06-23 21:25:20 -0700
commit1f5c74f6cf918d317c73b328dcd4cf6f55c44d8a (patch)
tree7baaadebece43244c5602da3e9a716e99c94fcdc /pack-check.c
parent6b516d984bc72b359a14eeddfddca578cef52297 (diff)
downloadgit-1f5c74f6cf918d317c73b328dcd4cf6f55c44d8a.tar.gz
call init_pack_revindex() lazily
This makes life much easier for next patch, as well as being more efficient when the revindex is actually not used. 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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pack-check.c b/pack-check.c
index f4898732dd..b99a9171c0 100644
--- a/pack-check.c
+++ b/pack-check.c
@@ -107,7 +107,6 @@ static void show_pack_info(struct packed_git *p)
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;