Add parseTree method to RevWalk to obtain a RevTree from AnyObjectId
commitffe125e8e217bd23da280d7e743cbb6f338d4638
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Jul 2008 01:44:01 +0000 (17 21:44 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 23 Jul 2008 19:52:08 +0000 (23 21:52 +0200)
treecd6d08ada217176dbeeb5dac3bf3c6056887ea4b
parentcfc49fafba6112c56080e5215138cf660fc7b7e1
Add parseTree method to RevWalk to obtain a RevTree from AnyObjectId

Some applications want to dereference an ObjectId back to a tree,
and they don't care what type of object the ObjectId supplied is
actually of.  If its an annotated tag we can peel the tag back to
either a tree, or a commit, and a commit can be peeled back to its
only tree.  So parseTree is a simple API for ^{tree}.

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