Allow WorkingTreeIterators to define their prefix path when created
commit04219ac1b0147e53dd833085a1330471f559140f
authorShawn O. Pearce <spearce@spearce.org>
Sun, 10 Aug 2008 08:46:20 +0000 (10 01:46 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 13 Aug 2008 19:55:55 +0000 (13 21:55 +0200)
tree10f4aafa9b20731382bb255101139e43df53b714
parent206c4fea9163d37c1a09ad99ce46087e809cd2e5
Allow WorkingTreeIterators to define their prefix path when created

When iterating a subset of the working directory over the full
repository tree (e.g. a CanonicalTreeParser run in parallel in
the same TreeWalk) we need the working directory to know what
prefix it must apply to all of its own generated paths so they
match up with the paths of the CanonicalTreeParser coming from
the object database.

The prefix is only set on the root level, as we only need to
inject it into the first iterator.  After that the shared path
buffer will ensure the subtree iterators (if any are created)
will have the proper path in them too.

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/treewalk/AbstractTreeIterator.java
org.spearce.jgit/src/org/spearce/jgit/treewalk/WorkingTreeIterator.java