Use DiffFormatter inside FileDiff
commit7445a9123e5a7f4b85be94af8d00fbfb50d8bade
authorStefan Lay <stefan.lay@sap.com>
Mon, 16 Aug 2010 22:28:33 +0000 (17 00:28 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 16 Aug 2010 22:28:33 +0000 (17 00:28 +0200)
treee2704595f070c2e05e347621d11d9c3bfb04138c
parent6ef63719a7e8c53b7627da17248398226f158b77
Use DiffFormatter inside FileDiff

Make use of the jgit classes DiffEntry and DiffFormatter to calculate
diff properties from a tree walk and to format the diff.

Unfortunately the DiffFormatter cannot yet be used for the eclipse
patch. The eclipse patch format does not show any source or
destination prefix,  and the paths are calculated relative to the eclipse
project.

Bug: 320966
Change-Id: I18bc942208f64abbcf8adb482f84fcb305194782
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitMessageViewer.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/FileDiff.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitCreatePatchWizard.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/command/CreatePatchHandler.java