Paper bag fix RevWalk.parseAny to always parse objects
commit9d161cdc53f7cb1083c39d25a1fedab09e8009ed
authorShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 00:37:16 +0000 (10 20:37 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:27 +0000 (11 01:16 -0400)
tree6c1a5d6832407ce1b91caec0d5a29e05226f8f5b
parent2e906f856bf122a21535614969646095e1538e3f
Paper bag fix RevWalk.parseAny to always parse objects

If the caller has asked us to parse an object from an ObjectId the
object they are requesting may already be in our cache, as it could
be a tree or a parent commit for a commit we have already parsed.
Since the object is in our cache we don't bother to open it from the
object database to examine its type, but it may not be parsed yet.
We need to parse it if it isn't.

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