Add new file tree iterator that can adapt into a ContainerTreeIterator
commit6f619c9c95d2ee1acb64823278e6dd5a0a9d11d5
authorTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:39:33 +0000 (17 18:39 +0100)
committerTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:44:12 +0000 (17 18:44 +0100)
treef595d09d7f8740fa50d23bf56210547c019446de
parent25805fa484aff6dc649f92a8d7fd95627a38e833
Add new file tree iterator that can adapt into a ContainerTreeIterator

As the iterator recurses into subtrees it will look for directories
that can be mapped using a given workspace root, and if there's a
mapping it will return a ContainerTreeIterator instead.

This feature required exposing the underlying file of the FileEntry,
as well as making ContainerTreeIterator's constructor that takes a
parent iterator public.

Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
org.spearce.egit.core.test/src/org/spearce/egit/core/T0003_AdaptableFileTreeIteratorTest.java [new file with mode: 0644]
org.spearce.egit.core/src/org/spearce/egit/core/AdaptableFileTreeIterator.java [new file with mode: 0644]
org.spearce.egit.core/src/org/spearce/egit/core/ContainerTreeIterator.java
org.spearce.jgit/src/org/spearce/jgit/treewalk/FileTreeIterator.java