aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-02-02 05:59:28 (EST)
committerTomasz Zarna2012-02-02 05:59:28 (EST)
commitf1945cac1da266bd41041c0975777066fcece26b (patch)
tree676f479cd0060634347009da6f2cd8d3bed7d6f6
parente4bfd61c9d2948169a98bbf5a8461c0f87d8759e (diff)
downloadjgit-f1945cac1da266bd41041c0975777066fcece26b.zip
jgit-f1945cac1da266bd41041c0975777066fcece26b.tar.gz
jgit-f1945cac1da266bd41041c0975777066fcece26b.tar.bz2
Add getters for old and new prefixes in DiffFormatterrefs/changes/44/5044/2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java18
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 33755dd..f6db1ea 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;