Allow PackWriter to create a corresponding index file
commit7c66b122ce0988a386aaa13bba3c80cc6eda6f83
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:17 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:22 +0000 (1 00:46 +0200)
treee26270781029a3b2df428813b1ff657c01544cf1
parentf671b301daa07124d69aad550fe813c3f6118125
Allow PackWriter to create a corresponding index file

If we are packing for local use, or are sending the pack file to
a dumb server we must also genrate the matching .idx file so Git
can use random access requests to read object data.  Since all
of the necessary information is available in our ObjectToPack we
can just pass off the sorted list to PackIndexWriter.

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