Parse "GIT binary patch" style patch metadata
commita221bdb2dc72389c41684024b898f88905e17825
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Dec 2008 02:46:15 +0000 (11 18:46 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:26 +0000 (13 03:13 +0100)
treebfe810de6d6b5bb61b60843edcb11b6695b3973a
parent7a8b37691f3c2fa3af29b93a42a74e0c507cde2b
Parse "GIT binary patch" style patch metadata

Git can produce binary patches that carry the full content or
delta information encoded in a base-85 text payload.  We parse
the headers out and produce a BinaryHunk wrapper for these so
applications can identify that the hunk exists, but we do not
attempt to decode the binary information.

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_GitBinary.patch [new file with mode: 0644]
org.spearce.jgit.test/tst/org/spearce/jgit/patch/PatchTest.java
org.spearce.jgit/src/org/spearce/jgit/patch/BinaryHunk.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/patch/FileHeader.java
org.spearce.jgit/src/org/spearce/jgit/patch/Patch.java