IndexTreeWalker walks index and tree in parallel
commitb22c86408b204ed07f8d4e03aa7753bdd28a20a7
authorDave Watson <dwatson@mimvista.com>
Fri, 7 Sep 2007 01:44:36 +0000 (6 21:44 -0400)
committerDave Watson <dwatson@mimvista.com>
Mon, 10 Sep 2007 01:04:17 +0000 (9 21:04 -0400)
tree38197ba9377a0a637b4154c43b49261b860f8275
parentcc7cf0f8ec1fcd102dfb5ed907b60da2fe0ef9bc
IndexTreeWalker walks index and tree in parallel

This class, along with the IndexTreeVisitor, is intended to solve
the problem of how to compare members of the index and a tree without
turning the index into a tree, which will waste memory and probably time.

This will be used by the ResetOperation, BranchOperation, WorkdirCheckout, and
IndexDiff, to do things more efficiently, in a single pass instead of several.

Signed-off-by: Dave Watson <dwatson@mimvista.com>
org.spearce.jgit/src/org/spearce/jgit/lib/AbstractIndexTreeVisitor.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/lib/IndexTreeVisitor.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/lib/IndexTreeWalker.java [new file with mode: 0644]
org.spearce.jgit/tst/org/spearce/jgit/lib/IndexTreeWalkerTest.java [new file with mode: 0644]