Cleanup RevWalk.parseTree semantics
commit2a5c87e83efda1a704ea03d9a70f392923c5328b
authorShawn O. Pearce <spearce@spearce.org>
Thu, 4 Sep 2008 23:42:14 +0000 (4 16:42 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 7 Sep 2008 21:24:09 +0000 (7 23:24 +0200)
tree0accc2842e3109d1e72d498bdcf1c199e2310e6c
parent66637d07522e660354b46931a48648043b577c6b
Cleanup RevWalk.parseTree semantics

When we call parseAny we may have opened the ObjectLoader for the
tree we are going after.  If that worked we know the object exists
in the repository and is certainly recorded as type "tree" so we
do not need to open the object a second time before returning to
the caller.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/revwalk/RevWalk.java