Code

get rid of num_packed_objects()
authorNicolas Pitre <nico@cam.org>
Wed, 16 Jul 2008 06:31:37 +0000 (02:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2008 16:33:28 +0000 (09:33 -0700)
commit852f96b816ea8967e799a35b91ea4e941cd0d2ae
tree47f7d8f7972ff6ab647bb1c25627becc245af465
parent3205364fc4c1565a587f0f4f1751f4ebd1bc5c12
get rid of num_packed_objects()

The coming index format change doesn't allow for the number of objects
to be determined from the size of the index file directly.  Instead, Let's
initialize a field in the packed_git structure with the object count when
the index is validated since the count is always known at that point.

(based on commit 57059091fad25427bce9b3d47e073ce0518d164b)

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-count-objects.c
builtin-pack-objects.c
cache.h
fsck-objects.c
pack-check.c
sha1_file.c
sha1_name.c