Open Deewiant opened 8 years ago
Thanks for your suggestion. I focused on a correct support of the various possible .gitignore patterns for the initial implementation, as I think that is most important for the majority of users and many people do not use the alternative source locations.
Most tools implement support for the global gitignore file by executing git
on the system to retrieve the file location - I don't want to do that (execute external programs) and I do not think this would be a great benefit. A global sift config or a .gitignore file in the root directory should work for most cases.
I will take a closer look at the $GIT_DIR/info/exclude
alternative - if that does not lead to significant overhead compared to the current implementation I will add that feature.
Personally, I use $GIT_DIR/info/exclude
a lot so I'd very much enjoy having that feature.
I haven't had any use for core.excludesFile
so at least currently I don't miss it, but I thought I'd include it in the issue for completeness.
$GIT_DIR/info/exclude
support, if you find that one more acceptable.
From
git help ignore
:(The text continues by explaining why these latter three alternatives exist.)
As far as I can tell sift currently does not take into account
$GIT_DIR/info/exclude
nor the file specified incore.excludesFile
.