Support using a DirCache within a TreeWalk
commitf130e364c428e542e60cadc5336646fe44e38553
authorShawn O. Pearce <spearce@spearce.org>
Tue, 12 Aug 2008 01:07:58 +0000 (11 18:07 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 14 Aug 2008 17:33:20 +0000 (14 19:33 +0200)
tree9bff12e3d44593fdfcf38f1a7f75c7ba3580ee3c
parent4e391d43aa814cede5c01c9ef710f819d4683475
Support using a DirCache within a TreeWalk

Being able to include the .git/index file as part of a parallel TreeWalk
which also covers one or more canonical tree objects from the database
and the working directory makes it much easier to handle differences or
merges between the various states.

This iterator implementation adapts a loaded DirCache instance into a
tree structure that the TreeWalk can iterate.  Since TreeWalk wants to
use a hierarchical structure and the DirCache is flat we force the TREE
extension to load (or generate) and work off that.

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/dircache/DirCacheIterator.java [new file with mode: 0644]