Revert changes to diff command components

This commit is contained in:
Rene Pfeuffer
2019-11-11 13:08:40 +01:00
parent 913e5289e6
commit 0f0e7437fd
2 changed files with 5 additions and 18 deletions

View File

@@ -90,10 +90,8 @@ public final class DiffCommandRequest extends FileBaseCommandRequest
@Override @Override
public boolean isValid() public boolean isValid()
{ {
return (!Strings.isNullOrEmpty(getPath()) return !Strings.isNullOrEmpty(getPath())
||!Strings.isNullOrEmpty(getRevision())) ||!Strings.isNullOrEmpty(getRevision());
&& (Strings.isNullOrEmpty(getAncestorChangeset())
|| Strings.isNullOrEmpty(getMergeChangeset()));
} }
//~--- set methods ---------------------------------------------------------- //~--- set methods ----------------------------------------------------------
@@ -114,12 +112,7 @@ public final class DiffCommandRequest extends FileBaseCommandRequest
public void setAncestorChangeset(String ancestorChangeset) { public void setAncestorChangeset(String ancestorChangeset) {
this.ancestorChangeset = ancestorChangeset; this.ancestorChangeset = ancestorChangeset;
} }
//~--- get methods ----------------------------------------------------------
public void setConflictBranch(String mergeChangeset) {
this.mergeChangeset = mergeChangeset;
}
//~--- get methods ----------------------------------------------------------
/** /**
* Return the output format of the diff command. * Return the output format of the diff command.
@@ -137,17 +130,10 @@ public final class DiffCommandRequest extends FileBaseCommandRequest
public String getAncestorChangeset() { public String getAncestorChangeset() {
return ancestorChangeset; return ancestorChangeset;
} }
//~--- fields ---------------------------------------------------------------
public String getMergeChangeset() {
return mergeChangeset;
}
//~--- fields ---------------------------------------------------------------
/** diff format */ /** diff format */
private DiffFormat format = DiffFormat.NATIVE; private DiffFormat format = DiffFormat.NATIVE;
private String ancestorChangeset; private String ancestorChangeset;
private String mergeChangeset;
} }

View File

@@ -69,4 +69,5 @@ public class GitDiffCommand extends AbstractGitCommand implements DiffCommand {
} }
}; };
} }
} }