|
Re: JGIT check if entry matches gitignore rules [message #1769245 is a reply to message #1769210] |
Fri, 28 July 2017 07:59 |
Christian Halstrick Messages: 274 Registered: July 2009 |
Senior Member |
|
|
You are sure that you don't want a FileTreeIterator and a TreeWalk? Problem is that .gitignore files can exist in any folder of the working tree. And you have to interprete and merge together all gitignores you find in the current dir and in all dirs upon you (and is has to be merged with global .gitignores in $HOME, /etc/,...). That's why a computation of the effective gitignore rules is done inside a Walk and an WalkIterator.
The same is true for attributes. You have to compute effective set of gitattributes to compute e.g. whether a file should be treated as binary or cr/lf conversion has to be done.
Ciao
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds