author | Nicolas Pitre <nico@cam.org> | |
Wed, 16 Jul 2008 06:31:37 +0000 (02:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 16:33:28 +0000 (09:33 -0700) | ||
commit | 852f96b816ea8967e799a35b91ea4e941cd0d2ae | |
tree | 47f7d8f7972ff6ab647bb1c25627becc245af465 | tree | snapshot |
parent | 3205364fc4c1565a587f0f4f1751f4ebd1bc5c12 | commit | diff |
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>
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 | diff | blob | history | |
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
fsck-objects.c | diff | blob | history | |
pack-check.c | diff | blob | history | |
sha1_file.c | diff | blob | history | |
sha1_name.c | diff | blob | history |