diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2012-06-24 01:00:31 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2012-06-24 01:00:31 +0200 |
commit | 3d98c3f0f30633b4952617a657e8fda590ed2af4 (patch) | |
tree | dfb07edb71917353d7e00f411fc96b79b03c51d2 /org.eclipse.jgit/src/org/eclipse | |
parent | 14ff22fd74e1720e9d8988c9d58653dd177f6fb6 (diff) | |
download | jgit-3d98c3f0f30633b4952617a657e8fda590ed2af4.tar.gz jgit-3d98c3f0f30633b4952617a657e8fda590ed2af4.zip |
Add toString() to simplify debugging rebase steps
Change-Id: Id1508c5f007a6a6680928992a1c7524c266a9ce4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java index 374db4c9ac..6f0c3eb0f4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/RebaseCommand.java @@ -955,6 +955,11 @@ public class RebaseCommand extends GitCommand<RebaseResult> { return this.token; } + @Override + public String toString() { + return "Action[" + token + "]"; + } + static Action parse(String token) { if (token.equals("pick") || token.equals("p")) return PICK; @@ -974,6 +979,15 @@ public class RebaseCommand extends GitCommand<RebaseResult> { Step(Action action) { this.action = action; } + + @Override + public String toString() { + return "Step[" + action + ", " + + ((commit == null) ? "null" : commit) + + ", " + + ((shortMessage == null) ? "null" : new String( + shortMessage)) + "]"; + } } PersonIdent parseAuthor(byte[] raw) { |