Save the pack checksum after computing it in PackWriter
commit3c0c8151ccac818ee8d1dfed2c4b2bb357ffc8cb
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:15 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:21 +0000 (1 00:46 +0200)
treeb7ae53eef697a080c6a72cc781186c29d4332a95
parentbf871429cdb92e4d60a3995f8b6c41daacc4d34d
Save the pack checksum after computing it in PackWriter

In order to create a matching .idx file for the pack we have
written out we must retain the last 20 bytes of the pack file
so we can include it at the trailing end of the 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/lib/PackWriter.java