Add toString() to simplify debugging rebase steps
Change-Id: Id1508c5f007a6a6680928992a1c7524c266a9ce4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
14ff22fd74
commit
3d98c3f0f3
|
@ -955,6 +955,11 @@ public String toToken() {
|
|||
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 @@ static class Step {
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue