Test for non-git binary files and mark them as PatchType.BINARY
commit6553e6b474fbec3425c2ff6700a5f4c3ff127e0c
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Dec 2008 02:46:12 +0000 (11 18:46 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:26 +0000 (13 03:13 +0100)
treed0b7107c6b7de70dec410943a1207ade7d4d890f
parent1b1257d120f0fc377ffab496248f3dada70ca3e3
Test for non-git binary files and mark them as PatchType.BINARY

By marking non-git binary patches as binary callers can examine
the patch type to determine if there is meaningful content on
this particular file.

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_NoBinary.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/FileHeader.java
org.spearce.jgit/src/org/spearce/jgit/patch/Patch.java