Teach tree iterators to iterate from the workspace root
commitf96979a261457402a5ee4deffd3bc9aa7aee278d
authorTor Arne Vestbø <torarnv@gmail.com>
Wed, 4 Feb 2009 15:36:22 +0000 (4 16:36 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 4 Feb 2009 17:12:13 +0000 (4 09:12 -0800)
treef406ca5ac60b909b46ee044ffd98211d8b5787c8
parentdcb837bd099dfc66a50e0a7f100248af5fce8fe2
Teach tree iterators to iterate from the workspace root

This is needed to be able to do treewalks of projects that
have their repository in the project's parent directory.

We always filter out '.git' entries when building the entry list,
no matter where we are in the tree, because we assume that the
checks in the ResourceEntry and FileEntry constructors for a
'.git' folder ensure that we never navigate into submodules.

Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.core/src/org/spearce/egit/core/ContainerTreeIterator.java
org.spearce.jgit/src/org/spearce/jgit/treewalk/WorkingTreeIterator.java