mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-07 22:15:45 +01:00
Revert changes to diff command components
This commit is contained in:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,4 +69,5 @@ public class GitDiffCommand extends AbstractGitCommand implements DiffCommand {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user