diff options
author | Sasa Zivkov <sasa.zivkov@sap.com> | 2011-02-24 11:12:06 +0100 |
---|---|---|
committer | Sasa Zivkov <sasa.zivkov@sap.com> | 2011-03-01 09:29:35 +0100 |
commit | 3e1a5081d64795d6980e73dc6b5148ed0f674701 (patch) | |
tree | 01aa319e0821cce3d6548a42f1b97627cccd046c /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java | |
parent | 2902c7679bde83075370ff3c05e3dbbc6d637e42 (diff) | |
download | jgit-3e1a5081d64795d6980e73dc6b5148ed0f674701.tar.gz jgit-3e1a5081d64795d6980e73dc6b5148ed0f674701.zip |
Show notes in Log CLI command - Part 2
This change fixes issues identified in the commit
5f3d577e5a1e8f23a2b6ea6a2bf24516806e01b8.
Change-Id: Idbd935f5f60ad043faa0d4982b3e101ef7c07d60
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java index 768890c85c..474e974cd1 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevWalkTextBuiltin.java @@ -199,10 +199,8 @@ abstract class RevWalkTextBuiltin extends TextBuiltin { } protected RevWalk createWalk() { - if (objects) - return new ObjectWalk(db); if (argWalk == null) - argWalk = new RevWalk(db); + argWalk = objects ? new ObjectWalk(db) : new RevWalk(db); return argWalk; } |