Define FileHeader.PatchType to report the style of patch used
commit1b1257d120f0fc377ffab496248f3dada70ca3e3
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Dec 2008 02:46:11 +0000 (11 18:46 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:26 +0000 (13 03:13 +0100)
treef577cc85147c220141ea663d0b614ccc0eb73240
parent3eaa9f1229c45fb51ddfc8cc7c1aa97f8ccac7c0
Define FileHeader.PatchType to report the style of patch used

Patches in a Git world come in at least three flavors:

  * Traditional unified patch
  * Binary patch with no data ("Binary files a/a and b/a differ")
  * Git binary patch with forward and reverse deltas

The PatchType indicates which of these flavors a given FileHeader
is looking at.  Right now we assume UNIFIED by default as that is
the most common form used.

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.test/tst/org/spearce/jgit/patch/PatchTest.java
org.spearce.jgit/src/org/spearce/jgit/patch/FileHeader.java