Add toString() to CherryPickCommand and ResetCommand

Change-Id: Ie2dd87943350e3b0a2df72a70e5219139d110a8f
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2016-10-09 23:46:39 +02:00
parent 0212a623f8
commit f6df5cf26e
2 changed files with 19 additions and 0 deletions

View File

@ -330,4 +330,15 @@ private String calculateOurName(Ref headRef) {
String headName = Repository.shortenRefName(targetRefName);
return headName;
}
@SuppressWarnings("nls")
@Override
public String toString() {
return "CherryPickCommand [repo=" + repo + ",\ncommits=" + commits
+ ",\nmainlineParentNumber=" + mainlineParentNumber
+ ", noCommit=" + noCommit + ", ourCommitName=" + ourCommitName
+ ", reflogPrefix=" + reflogPrefix + ", strategy=" + strategy
+ "]";
}
}

View File

@ -432,4 +432,12 @@ private void resetRevert() throws IOException {
repo.writeMergeCommitMsg(null);
}
@SuppressWarnings("nls")
@Override
public String toString() {
return "ResetCommand [repo=" + repo + ", ref=" + ref + ", mode=" + mode
+ ", isReflogDisabled=" + isReflogDisabled + ", filepaths="
+ filepaths + "]";
}
}