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

View File

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