Paper bag fix 'jgit glog' handling of commit-ish arguments
commit2e1702146da802b5760acc4cdfd543e317468f2b
authorShawn O. Pearce <spearce@spearce.org>
Thu, 14 Aug 2008 23:12:19 +0000 (14 16:12 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 15 Aug 2008 15:49:00 +0000 (15 08:49 -0700)
tree2886360f30e1a605837f3ad696787ce415b83f7f
parent0423eb9e2b3c5992b1d829810717ccfb5aac1887
Paper bag fix 'jgit glog' handling of commit-ish arguments

When we parsed these arguments into RevCommit instances they were
done against the wrong RevWalk instance.  We parsed them into a
generic RevWalk which has no plotting support, so the objects do
not have the extra fields used by the plotting code.  We need to
lookup the commit from the PlotRevWalk and use those instances.

One of the calls (markStart) failed to use the secondary RevWalk
instance, resulting in a ClassCastException during plotting.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.pgm/src/org/spearce/jgit/pgm/RevWalkTextBuiltin.java