# [PATCH 0/5] sha1_file.c pack reading cleanups

1 messages from 2006-08-26 to 2006-08-26. Participants: Shawn Pearce.
Thread: https://gitlist.dev/t/5388

## Shawn Pearce, 2006-08-26 08:10

Subject: [PATCH 0/5] sha1_file.c pack reading cleanups
Message-ID: <20060826081016.GB22343@spearce.org>
URL: https://gitlist.dev/e/20060826081016.GB22343%40spearce.org

```
This is a 5 patch series built on `master`.  I discovered these
cleanups when I lifted code from sha1_file.c for fast-import.c
(as I needed to read the pack I was writing and thus didn't have
a nice sorted index to work with).

I'll probably follow this series with another one which libifies
more of these functions to the point that I can actually use them
from within fast-import.c, without having an index file.  But I
might first send partial pack mapping as I'm also doing that in
fast-import.c right now.

In this series:

  1/5 Reorganize/rename unpack_non_delta_entry to unpack_compressed_entry.
  2/5 Reuse compression code in unpack_compressed_entry.
  3/5 Cleanup unpack_entry_gently and friends to use type_name array.
  4/5 Cleanup unpack_object_header to use only offsets.
  5/5 Convert unpack_entry_gently and friends to use offsets.

-- 
Shawn.

```
