author | Nicolas Pitre <nico@cam.org> | |
Mon, 9 Apr 2007 05:06:28 +0000 (01:06 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Apr 2007 19:48:14 +0000 (12:48 -0700) | ||
commit | 57059091fad25427bce9b3d47e073ce0518d164b | |
tree | 9e51d626819d9eedc260a157774dc8fe1f06f5e4 | tree | snapshot |
parent | 8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8 | 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.
While at it let's reorder some struct packed_git fields to avoid padding
due to needed 64-bit alignment for some of them.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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.
While at it let's reorder some struct packed_git fields to avoid padding
due to needed 64-bit alignment for some of them.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-count-objects.c | diff | blob | history | |
builtin-fsck.c | diff | blob | history | |
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
pack-check.c | diff | blob | history | |
sha1_file.c | diff | blob | history | |
sha1_name.c | diff | blob | history |