]> source.dussan.org Git - jgit.git/commitdiff
BatchRefUpdate: Include command message in toString() 30/74430/1
authorDave Borowitz <dborowitz@google.com>
Thu, 2 Jun 2016 17:24:59 +0000 (13:24 -0400)
committerDave Borowitz <dborowitz@google.com>
Thu, 2 Jun 2016 17:24:59 +0000 (13:24 -0400)
Change-Id: I359f33af5aa84af77c3628e6cd9a5ee3f7f38d49

org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java

index 35cadd3c97b662b7fedf27831d705d7dbc8c88b0..c0e1fcbfe39085990df140db21d7a5bbfa073b07 100644 (file)
@@ -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();
        }