aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:44:55 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2019-01-21 23:44:55 +0100
commitb33124c0eed13a93f5b93e47a2f6596c5adca482 (patch)
treeb10e60b5fd8c6c83c6d7417da71ea666dad79a2b /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java
parent5ca4075c450acf70481caa664d70993f0611b782 (diff)
downloadjgit-b33124c0eed13a93f5b93e47a2f6596c5adca482.tar.gz
jgit-b33124c0eed13a93f5b93e47a2f6596c5adca482.zip
pgm: Fix missing braces in ShowRef.run()
Change-Id: I92bc2008c72bd4495dc3df47a9dd7eb242aab30f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java')
-rw-r--r--org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java
index d319759ed7..b8442c5a50 100644
--- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java
+++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/ShowRef.java
@@ -60,8 +60,9 @@ class ShowRef extends TextBuiltin {
try {
for (Ref r : getSortedRefs()) {
show(r.getObjectId(), r.getName());
- if (r.getPeeledObjectId() != null)
+ if (r.getPeeledObjectId() != null) {
show(r.getPeeledObjectId(), r.getName() + "^{}"); //$NON-NLS-1$
+ }
}
} catch (IOException e) {
throw die(e.getMessage(), e);