Cleanup duplicated object reuse code in PackWriter
commiteeed0abd1626eb972059252bdc1c68b5bb8faf78
authorShawn O. Pearce <spearce@spearce.org>
Mon, 26 Apr 2010 23:54:48 +0000 (26 16:54 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 27 Apr 2010 00:29:10 +0000 (26 17:29 -0700)
treec25278adf3542e85d3540593b33225ad1cb68998
parent4ef96296f7cbd748cf46a6c6fba045e355915158
Cleanup duplicated object reuse code in PackWriter

This reuse line was identical between the two branches related to
reusing a delta, or reusing a whole object.  Either way they reuse
the body of the object as-is.  So just make that a common function
after the header is written.

Change-Id: I0e6673b8e813c8c08c594ea2ba546fd366339d5d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/PackWriter.java