summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2016-06-02 13:24:59 -0400
committerDave Borowitz <dborowitz@google.com>2016-06-02 13:24:59 -0400
commitba8eb931734d990c5a6a9352e4629fc84a191808 (patch)
treeec21000d396f1333d8c5dab553ccf70b34791910
parent4f0ebc4c3cabae3d39530d6578c5daac58434574 (diff)
downloadjgit-ba8eb931734d990c5a6a9352e4629fc84a191808.tar.gz
jgit-ba8eb931734d990c5a6a9352e4629fc84a191808.zip
BatchRefUpdate: Include command message in toString()
Change-Id: I359f33af5aa84af77c3628e6cd9a5ee3f7f38d49
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
index 35cadd3c97..c0e1fcbfe3 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
@@ -487,7 +487,11 @@ public class BatchRefUpdate {
for (ReceiveCommand cmd : commands) {
r.append(" "); //$NON-NLS-1$
r.append(cmd);
- r.append(" (").append(cmd.getResult()).append(")\n"); //$NON-NLS-1$ //$NON-NLS-2$
+ r.append(" (").append(cmd.getResult()); //$NON-NLS-1$
+ if (cmd.getMessage() != null) {
+ r.append(": ").append(cmd.getMessage()); //$NON-NLS-1$
+ }
+ r.append(")\n"); //$NON-NLS-1$
}
return r.append(']').toString();
}