]> git.ipfire.org Git - thirdparty/git.git/commit - pack.h
[PATCH] clean up pack index handling a bit
authorNicolas Pitre <nico@cam.org>
Fri, 16 Mar 2007 20:42:50 +0000 (16:42 -0400)
committerJunio C Hamano <junkio@cox.net>
Sat, 17 Mar 2007 04:27:36 +0000 (21:27 -0700)
commit4287307833a7c67b09973fc1023311e473f830b2
tree73148a57513bc2002138b86d184c1ec20f73ebf9
parentac527b0b7c9be37ad7f2f7d871b6e9b41fd0c431
[PATCH] 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.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c
cache.h
pack-check.c
pack-redundant.c
pack.h
sha1_file.c