Convert unpack_entry_gently and friends to use offsets.
commiteb950c192a0e0dfc069e16e857cbe1ae16d8ad82
authorShawn Pearce <spearce@spearce.org>
Sat, 26 Aug 2006 08:12:27 +0000 (26 04:12 -0400)
committerJunio C Hamano <junkio@cox.net>
Sun, 27 Aug 2006 00:35:21 +0000 (26 17:35 -0700)
treeed2e093e5d0caa9727005e35296bfd787d594e91
parent465b26eeef79e3cb4cb6276e405e59d986069926
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>
sha1_file.c