author | Nicolas Pitre <nico@cam.org> | |
Thu, 21 Sep 2006 04:05:37 +0000 (00:05 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Sep 2006 08:51:33 +0000 (01:51 -0700) | ||
commit | 43057304c0bbaf7bc7511daaf81df08c7909a90b | |
tree | cd6fa0d7aea39d7a3f5e9b1f37e123ec348f045a | tree | snapshot |
parent | 16854571aae6302f457c5fbee41ac64669b09595 | commit | diff |
many cleanups to sha1_file.c
Those cleanups are mainly to set the table for the support of deltas
with base objects referenced by offsets instead of sha1. This means
that many pack lookup functions are converted to take a pack/offset
tuple instead of a sha1.
This eliminates many struct pack_entry usages since this structure
carried redundent information in many cases, and it increased stack
footprint needlessly for a couple recursively called functions that used
to declare a local copy of it for every recursion loop.
In the process, packed_object_info_detail() has been reorganized as well
so to look much saner and more amenable to deltas with offset support.
Finally the appropriate adjustments have been made to functions that
depend on the above changes. But there is no functionality changes yet
simply some code refactoring at this point.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Those cleanups are mainly to set the table for the support of deltas
with base objects referenced by offsets instead of sha1. This means
that many pack lookup functions are converted to take a pack/offset
tuple instead of a sha1.
This eliminates many struct pack_entry usages since this structure
carried redundent information in many cases, and it increased stack
footprint needlessly for a couple recursively called functions that used
to declare a local copy of it for every recursion loop.
In the process, packed_object_info_detail() has been reorganized as well
so to look much saner and more amenable to deltas with offset support.
Finally the appropriate adjustments have been made to functions that
depend on the above changes. But there is no functionality changes yet
simply some code refactoring at this point.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
pack-check.c | diff | blob | history | |
sha1_file.c | diff | blob | history |