author | Shawn Pearce <spearce@spearce.org> | |
Sat, 26 Aug 2006 08:12:27 +0000 (04:12 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 27 Aug 2006 00:35:21 +0000 (17:35 -0700) | ||
commit | eb950c192a0e0dfc069e16e857cbe1ae16d8ad82 | |
tree | ed2e093e5d0caa9727005e35296bfd787d594e91 | tree | snapshot |
parent | 465b26eeef79e3cb4cb6276e405e59d986069926 | commit | diff |
Convert unpack_entry_gently and friends to use offsets.
Change unpack_entry_gently and its helper functions to use offsets
rather than addresses and left counts to supply pack position
information. In most cases this makes the code easier to follow,
and it reduces the number of local variables in a few functions.
It also better prepares this code for mapping partial segments of
packs and altering what regions of a pack are mapped while unpacking
an entry.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Change unpack_entry_gently and its helper functions to use offsets
rather than addresses and left counts to supply pack position
information. In most cases this makes the code easier to follow,
and it reduces the number of local variables in a few functions.
It also better prepares this code for mapping partial segments of
packs and altering what regions of a pack are mapped while unpacking
an entry.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | diff | blob | history |