Merge "Add toString() to CherryPickCommand and ResetCommand"

This commit is contained in:
Matthias Sohn 2016-10-12 08:38:30 -04:00 committed by Gerrit Code Review @ Eclipse.org
commit 59212bbb47
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 + "]";
}
}