author | Nicolas Pitre <nico@cam.org> | |
Wed, 16 Jul 2008 06:31:35 +0000 (02:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 16:33:27 +0000 (09:33 -0700) | ||
commit | c86a54b714df7a5cefeb79f09a422e3fe0e9d34a | |
tree | de2ec92270b66d643c2f73a701f429360a12c58b | tree | snapshot |
parent | 8977c110b5bbd230c28c727ddb85856067d55cfb | commit | diff |
clean up pack index handling a bit
Especially with the new index format to come, it is more appropriate
to encapsulate more into check_packed_git_idx() and assume less of the
index format in struct packed_git.
To that effect, the index_base is renamed to index_data with void * type
so it is not used directly but other pointers initialized with it. This
allows for a couple pointer cast removal, as well as providing a better
generic name to grep for when adding support for new index versions or
formats.
And index_data is declared const too while at it.
(based on commit 4287307833a7c67b09973fc1023311e473f830b2)
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Especially with the new index format to come, it is more appropriate
to encapsulate more into check_packed_git_idx() and assume less of the
index format in struct packed_git.
To that effect, the index_base is renamed to index_data with void * type
so it is not used directly but other pointers initialized with it. This
allows for a couple pointer cast removal, as well as providing a better
generic name to grep for when adding support for new index versions or
formats.
And index_data is declared const too while at it.
(based on commit 4287307833a7c67b09973fc1023311e473f830b2)
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
pack-check.c | diff | blob | history | |
pack-redundant.c | diff | blob | history | |
pack.h | diff | blob | history | |
sha1_file.c | diff | blob | history |