diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2017-09-08 01:47:56 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2017-09-08 01:51:23 +0200 |
commit | 52ed475211e2a401d9641a7613ae24abad542685 (patch) | |
tree | 3740bd44e7d9d5b8decbc017306943e54d320346 /org.eclipse.jgit.pgm/src | |
parent | c27f36dfc79d4127f41c4875d0c1374dbd487d4f (diff) | |
download | jgit-52ed475211e2a401d9641a7613ae24abad542685.tar.gz jgit-52ed475211e2a401d9641a7613ae24abad542685.zip |
Implement CommandRef.toString() to help debugging
Change-Id: If3ebed08c8f4e2cc925a97dbdd4c84410bc7c4a5
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java index 52225150a5..e5f85324e1 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java @@ -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 + "]"; + } } |