Code

Cleanup unpack_object_header to use only offsets.
authorShawn Pearce <spearce@spearce.org>
Sat, 26 Aug 2006 08:12:04 +0000 (04:12 -0400)
committerJunio C Hamano <junkio@cox.net>
Sun, 27 Aug 2006 00:35:20 +0000 (17:35 -0700)
commit465b26eeef79e3cb4cb6276e405e59d986069926
treef0f0b2e7c81d21f5a5ab826d9e9b0a7711cf55df
parent5a18f540a5f8f8ba8b4f8027ed7742bfec85433c
Cleanup unpack_object_header to use only offsets.

If we're always incrementing both the offset and the pointer we
aren't gaining anything by keeping both.  Instead just use the
offset since that's what we were given and what we are expected
to return.  Also using offset is likely to make it easier to remap
the pack in the future should partial mapping of very large packs
get implemented.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c