diff options
| author | Tomasz Zarna | 2012-02-02 10:59:28 +0000 |
|---|---|---|
| committer | Tomasz Zarna | 2012-02-02 10:59:28 +0000 |
| commit | f1945cac1da266bd41041c0975777066fcece26b (patch) | |
| tree | 676f479cd0060634347009da6f2cd8d3bed7d6f6 | |
| parent | e4bfd61c9d2948169a98bbf5a8461c0f87d8759e (diff) | |
| download | jgit-f1945cac1da266bd41041c0975777066fcece26b.tar.gz jgit-f1945cac1da266bd41041c0975777066fcece26b.tar.xz jgit-f1945cac1da266bd41041c0975777066fcece26b.zip | |
Add getters for old and new prefixes in DiffFormatter
Bug: 370318
Change-Id: Iaf9282ba55ee3bb4e2c27fb71c598b308771bf57
| -rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java index 33755dd993..f6db1ea7d5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -275,6 +275,15 @@ public class DiffFormatter { } /** + * Get the prefix applied in front of old file paths. + * + * @return the prefix + */ + public String getOldPrefix() { + return this.oldPrefix; + } + + /** * Set the prefix applied in front of new file paths. * * @param prefix @@ -287,6 +296,15 @@ public class DiffFormatter { newPrefix = prefix; } + /** + * Get the prefix applied in front of new file paths. + * + * @return the prefix + */ + public String getNewPrefix() { + return this.newPrefix; + } + /** @return true if rename detection is enabled. */ public boolean isDetectRenames() { return renameDetector != null; |
