Add diff.DiffFormatter to create Git style unified patch scripts
commite2c9d6f70baeeb0fbad02c9f8db9f904d91f286f
authorJohannes E. Schindelin <johannes.schindelin@gmx.de>
Sun, 3 May 2009 00:29:38 +0000 (2 17:29 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 4 May 2009 22:42:15 +0000 (5 00:42 +0200)
tree5ff67ed22276704a96269f92ee80a2e3af87e590
parent05bc0288882c7ccd7cf355f5c9982696c30ef7e7
Add diff.DiffFormatter to create Git style unified patch scripts

Currently the formatter can only copy an existing FileHeader, one
that has been parsed from an existing patch script.  This makes
it only useful for increasing or decreasing the number of lines
of context, assuming we already have both the old and new content
images to match.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
21 files changed:
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/E.patch [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/E_PostImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/E_PreImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/X.patch [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/X_PostImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/X_PreImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Y.patch [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Y_PostImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Y_PreImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Z.patch [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Z_PostImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/Z_PreImage [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext0.out [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext1.out [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext10.out [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext100.out [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext3.out [new file with mode: 0644]
org.spearce.jgit.test/tst-rsrc/org/spearce/jgit/diff/testContext5.out [new file with mode: 0644]
org.spearce.jgit.test/tst/org/spearce/jgit/diff/DiffFormatterReflowTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/diff/DiffFormatter.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/diff/RawText.java