Patch Set 1:

Thanks for the suggestion, I will take a look at reimplementing the tests, etc. with your patches.

Might need to make a slight change to the logic so NOT_IGNORED breaks instead of returns. I documented this case on my Eclipse wiki talk page, but if the folder "/a" is ignored then the file "/a/file.c" might be ignored even if it is expressly set as NOT_IGNORE by its local .gitignore file. Perhaps this would be naturally resolved by the order in which nodes are parsed? I will test.