Add a TreeWalk iterator implementation for IContainer
commite7e00fa69b985947c150464199ba928064d50200
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 14 Aug 2008 16:57:30 +0000 (14 18:57 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 14 Aug 2008 16:57:30 +0000 (14 18:57 +0200)
tree1d111274bc98a94d180160e25433cfbbdfa93c57
parent4c375d819ca0b6683cd399baed5e1953e0a1ade0
Add a TreeWalk iterator implementation for IContainer

Treating the Eclipse workspace as a filesystem backend for TreeWalk
can give us some nice caching on the file modification times and on
directory contents.  We also get nice APIs to open a file and read
its contents.

This iterator allows combining a walk over an IContainer with any
other sort of directory walk we may do, like against a stored tree
object in the object database or against the index file, or even
any other IContainer in the workspace (e.g. diff two projects).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Dropped the use of IContainer.INCLUDE_HIDDEN.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.core/src/org/spearce/egit/core/ContainerTreeIterator.java [new file with mode: 0644]