Compute packed object entry CRC32 data during IndexPack
commit768ba40f85e8422a81a61bbfa7bbff7af7cb78ce
authorShawn O. Pearce <spearce@spearce.org>
Tue, 24 Jun 2008 02:10:06 +0000 (23 22:10 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 05:37:41 +0000 (30 07:37 +0200)
tree9c5ad17c172ec45a12bd92a99ba9eabb4709bc1d
parent4b8cb0ffdb5f73414f0e3b18fae58ec2fbb84e7a
Compute packed object entry CRC32 data during IndexPack

In order to create a pack index using the v2 file format we must
have the CRC32 data available for every object we discovered in
that pack stream.  We now compute this on the fly as we read the
object entries in from the input stream.  Always running the CRC
computation isn't that expensive and we can be certain we would
always have the information necessary to create a v2 index file.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/IndexPack.java
org.spearce.jgit/src/org/spearce/jgit/transport/PackedObjectInfo.java