diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-20 21:31:07 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-01-21 00:54:13 +0100 |
commit | 5739d1b314c8015149936dae83d29cb7ef2e7266 (patch) | |
tree | 7e60a4821be9c4549f162209f01f6439349f1b28 | |
parent | 64386cbfb70158bcdd4cefb8206e2d5d7c75762d (diff) | |
download | jgit-5739d1b314c8015149936dae83d29cb7ef2e7266.tar.gz jgit-5739d1b314c8015149936dae83d29cb7ef2e7266.zip |
pgm: Fix missing braces in Log.run()
Change-Id: I3e4f41150aeeffc8c609ef14ce5b6d428c4595d7
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java index a5c72e666a..05b7980c24 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java @@ -197,8 +197,9 @@ class Log extends RevWalkTextBuiltin { diffFmt.setRepository(db); try { diffFmt.setPathFilter(pathFilter); - if (detectRenames != null) + if (detectRenames != null) { diffFmt.setDetectRenames(detectRenames.booleanValue()); + } if (renameLimit != null && diffFmt.isDetectRenames()) { RenameDetector rd = diffFmt.getRenameDetector(); rd.setRenameLimit(renameLimit.intValue()); @@ -220,10 +221,10 @@ class Log extends RevWalkTextBuiltin { } } - if (decorate) + if (decorate) { allRefsByPeeledObjectId = getRepository() .getAllRefsByPeeledObjectId(); - + } super.run(); } catch (Exception e) { throw die(e.getMessage(), e); |