diff options
author | Nicolas Pitre <nico@cam.org> | 2008-06-23 21:22:14 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-23 21:25:20 -0700 |
commit | 1f5c74f6cf918d317c73b328dcd4cf6f55c44d8a (patch) | |
tree | 7baaadebece43244c5602da3e9a716e99c94fcdc /builtin-pack-objects.c | |
parent | 6b516d984bc72b359a14eeddfddca578cef52297 (diff) | |
download | git-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 'builtin-pack-objects.c')
-rw-r--r-- | builtin-pack-objects.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 447d492dbb..827673ce4e 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1148,8 +1148,6 @@ static void get_object_details(void) sorted_by_offset[i] = objects + i; qsort(sorted_by_offset, nr_objects, sizeof(*sorted_by_offset), pack_offset_sort); - init_pack_revindex(); - for (i = 0; i < nr_objects; i++) check_object(sorted_by_offset[i]); |