From f1945cac1da266bd41041c0975777066fcece26b Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Thu, 2 Feb 2012 11:59:28 +0100 Subject: [PATCH] Add getters for old and new prefixes in DiffFormatter Bug: 370318 Change-Id: Iaf9282ba55ee3bb4e2c27fb71c598b308771bf57 --- .../org/eclipse/jgit/diff/DiffFormatter.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 33755dd99..f6db1ea7d 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/diff/DiffFormatter.java @@ -274,6 +274,15 @@ public void setOldPrefix(String prefix) { oldPrefix = prefix; } + /** + * 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. * @@ -287,6 +296,15 @@ public void setNewPrefix(String prefix) { 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;