]> source.dussan.org Git - jgit.git/commit
Rewrite resolve in terms of RevWalk 13/913/4
authorShawn O. Pearce <spearce@spearce.org>
Thu, 24 Jun 2010 00:26:43 +0000 (17:26 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 24 Jun 2010 00:32:41 +0000 (17:32 -0700)
commitb6ba9739d5e10e18ecff13095204d71e95837392
tree78f7e75802d1f77c21ef6e02df4245c092604c7f
parent47c07e1a0dec79cb87fc5ccd6ee9b5e64992efb5
Rewrite resolve in terms of RevWalk

We want to eventually get rid of the mapCommit, mapTree APIs on
Repository and force everyone into the faster parsers that exist
in RevWalk.  Rewriting resolve in terms of the faster parsers is
a good first step.

It actually simplifies the code a bit, as we no longer need to
keep track of an ObjectId and an Object (the parsed form), since
all RevObjects implicitly have their ObjectId readily available.

Change-Id: I4d234630195616e2c263e7e70038b55a1be4e7a3
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java