Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java')
-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 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;

Back to the top