Add new file tree iterator that can adapt into a ContainerTreeIterator
commita7a354ed0ac06de40e6b196179e9a7427716df33
authorTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:51:41 +0000 (17 18:51 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:38 +0000 (18 22:22 +0100)
treee20e89c2898c687a2186064de045610070b7207f
parent3256cf5566bcd742c4588403c8314fe9054d8526
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>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.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