Teach FileTreeIterator how to recognize a submodule when it sees one
commit741944a966034c2f9a34ece19671eab438caf0d4
authorShawn O. Pearce <spearce@spearce.org>
Sun, 30 Mar 2008 01:59:53 +0000 (29 21:59 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:33 +0000 (7 01:06 -0400)
tree503854b54eb6a3db6c6f16c5de6a26cd801b84e7
parent68aab760b3bbeb2e4631f8340ff2f2caab6056d7
Teach FileTreeIterator how to recognize a submodule when it sees one

If we find a directory and it contains a ".git" child directory
then the directory is actually a submodule, and its mode should
be GITLINK, not TREE.  This prevents the base class iterator from
entering into the submodule and showing its associated working
directory files as part of this traversal.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/treewalk/FileTreeIterator.java