Add a test for delta binary patch parsing and fix a bug in it
commitd9996907ad7bb1f4efc48f857a48e34bba3d1a08
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 01:12:12 +0000 (13 02:12 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:28 +0000 (13 03:13 +0100)
tree53dbd9c97250a253c73143e35b74fa11c43e352f
parent83b0d70958090625dc5cb8e345a20f18da60f6f7
Add a test for delta binary patch parsing and fix a bug in it

We had the wrong header code in this case, so we didn't parse
the length correctly for delta style binary hunks.  Without a
test case for it we never noticed the problem.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/patch/testParse_GitBinaryDelta.patch [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/patch/testParse_GitBinaryLiteral.patch [moved from org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/patch/testParse_GitBinary.patch with 100% similarity]
org.spearce.jgit.test/tst/org/spearce/jgit/patch/PatchTest.java
org.spearce.jgit/src/org/spearce/jgit/patch/BinaryHunk.java