]> source.dussan.org Git - jgit.git/commit
Move ignore node handling into WorkingTreeIterator 56/1156/5
authorShawn O. Pearce <spearce@spearce.org>
Wed, 21 Jul 2010 08:51:15 +0000 (10:51 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 21 Jul 2010 17:34:08 +0000 (10:34 -0700)
commit09910ffa32e472481a3ba237cf99d803576c9172
treee94c076de081f7a5e345acef8b5d653245f21ca8
parent0ec0e21fdf6a60692cf796ea789b689eb1f0b0b2
Move ignore node handling into WorkingTreeIterator

The working tree iterator has perfect knowledge of the path structure
as well as immediate information about whether or not an ignore file
even exists at this level.  We can exploit that to simplify the
logic and running time for testing ignored file status by pushing
all of the checks down into the iterator itself.

Change-Id: I22ff534853e8c5672cc5c2d9444aeb14e294070e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Charley Wang <chwang@redhat.com>
CC: Chris Aniszczyk <caniszczyk@gmail.com>
CC: Stefan Lay <stefan.lay@sap.com>
CC: Matthias Sohn <matthias.sohn@sap.com>
19 files changed:
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/.gitignore [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/.gitignore [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/a/.gitignore [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/a/b1/.gitignore [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/a/b1/test.stp [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/a/b2/c/.gitignore [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/new/a/b2/c/test.stp [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/notignored [deleted file]
org.eclipse.jgit.test/tst-rsrc/org/eclipse/jgit/test/resources/excludeTest/test.stp [deleted file]
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreCacheTest.java [deleted file]
org.eclipse.jgit.test/tst/org/eclipse/jgit/ignore/IgnoreNodeTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ReadTreeTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/AddCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreNode.java
org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
org.eclipse.jgit/src/org/eclipse/jgit/ignore/SimpleIgnoreCache.java [deleted file]
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/FileTreeIterator.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/TreeWalk.java
org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java