Browse Source

Merge "Add toString() to CherryPickCommand and ResetCommand"

stable-4.6
Matthias Sohn 8 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
59212bbb47
  1. 11
      org.eclipse.jgit/src/org/eclipse/jgit/api/CherryPickCommand.java
  2. 8
      org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

11
org.eclipse.jgit/src/org/eclipse/jgit/api/CherryPickCommand.java

@ -330,4 +330,15 @@ public class CherryPickCommand extends GitCommand<CherryPickResult> {
String headName = Repository.shortenRefName(targetRefName); String headName = Repository.shortenRefName(targetRefName);
return headName; return headName;
} }
@SuppressWarnings("nls")
@Override
public String toString() {
return "CherryPickCommand [repo=" + repo + ",\ncommits=" + commits
+ ",\nmainlineParentNumber=" + mainlineParentNumber
+ ", noCommit=" + noCommit + ", ourCommitName=" + ourCommitName
+ ", reflogPrefix=" + reflogPrefix + ", strategy=" + strategy
+ "]";
}
} }

8
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

@ -432,4 +432,12 @@ public class ResetCommand extends GitCommand<Ref> {
repo.writeMergeCommitMsg(null); repo.writeMergeCommitMsg(null);
} }
@SuppressWarnings("nls")
@Override
public String toString() {
return "ResetCommand [repo=" + repo + ", ref=" + ref + ", mode=" + mode
+ ", isReflogDisabled=" + isReflogDisabled + ", filepaths="
+ filepaths + "]";
}
} }

Loading…
Cancel
Save