Add getters for old and new prefixes in DiffFormatter

Bug: 370318
Change-Id: Iaf9282ba55ee3bb4e2c27fb71c598b308771bf57
This commit is contained in:
Tomasz Zarna 2012-02-02 11:59:28 +01:00
parent e4bfd61c9d
commit f1945cac1d
1 changed files with 18 additions and 0 deletions

View File

@ -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;