]> source.dussan.org Git - jgit.git/commitdiff
Implement CommandRef.toString() to help debugging 85/104685/1
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 7 Sep 2017 23:47:56 +0000 (01:47 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 7 Sep 2017 23:51:23 +0000 (01:51 +0200)
Change-Id: If3ebed08c8f4e2cc925a97dbdd4c84410bc7c4a5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java

index 52225150a5964d4a9d525b2cf8f9e6a212db4ac7..e5f85324e171e0e22371729e19f6dd6adef4a004 100644 (file)
@@ -165,4 +165,12 @@ public class CommandRef {
                r.setCommandName(getName());
                return r;
        }
+
+       @SuppressWarnings("nls")
+       @Override
+       public String toString() {
+               return "CommandRef [impl=" + impl + ", name=" + name + ", usage="
+                               + CLIText.get().resourceBundle().getString(usage) + ", common="
+                               + common + "]";
+       }
 }