From 1f5c74f6cf918d317c73b328dcd4cf6f55c44d8a Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Mon, 23 Jun 2008 21:22:14 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- pack-check.c | 1 - 1 file changed, 1 deletion(-) (limited to 'pack-check.c') 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; -- cgit v1.2.3