Properly evaluate gitignore and skip ignored files#186
Properly evaluate gitignore and skip ignored files#186Erlandys wants to merge 2 commits intoProjectBorealis:devfrom
Conversation
|
Hi, thanks for the change! I think this would help a lot for repo setups that ignore certain directories, like developer-only files. About the changes, would it be possible to add caching to this? I'm wary about this function and the number of times it runs. |
I don't really think it's very heavy command as it should just evaluate gitignore locally and provide the output. Using this change on my end and everything seems to work pretty well. And caching would be per file, so it would end up quite big, unless it would be done as full .gitignore parser. On my end it helps quite alot, since I do alot of iterations in ignored folders and I don't get the popups with git being parsed and errors, that the files cannot be added. Unless you have some other idea on caching? |
|
We added naive caching for I believe this can be done by doing |
This will evaluate
.gitignoreand skip files, which are ignored in the repo.Main reason for this is to not throw error that git command failed, for files/directories which are ignored by the repo.