Fix Patch.parse to honor the end point passed in
commitb0193ed1a12c5f5386855aab7e2de21b2a66dade
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Dec 2008 02:46:17 +0000 (11 18:46 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:26 +0000 (13 03:13 +0100)
tree08f9f3b8f9e0b0f66c15770912a21430ac4f1907
parentbdf74110d900a435dc0f646b4c64283f670ec6b9
Fix Patch.parse to honor the end point passed in

Otherwise we may over-read the patch script and identify trailer
data as part of a patch when it was requested that we ignore it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/patch/FileHeaderTest.java
org.spearce.jgit/src/org/spearce/jgit/patch/BinaryHunk.java
org.spearce.jgit/src/org/spearce/jgit/patch/FileHeader.java
org.spearce.jgit/src/org/spearce/jgit/patch/HunkHeader.java
org.spearce.jgit/src/org/spearce/jgit/patch/Patch.java