sharkdp / fd

A simple, fast and user-friendly alternative to 'find'
Apache License 2.0
34.29k stars 816 forks source link

Only ignore .git/info/exclude #1612

Open AckslD opened 2 months ago

AckslD commented 2 months ago

It would be great if there could be a flag such as --no-ignore-vcs-exclude, which would be similar to --no-ignore-vcs except it would still take .gitignore into account but only not .git/info/exclude. Maybe this seems like a too specific feature but the reason why I think this would make sense is that I would often use .git/info/exclude for files that I actually do want to see and use locally, but only for myself and not commit them to the repo. It's different from .gitignore which most likely no one wants to see (therefore including me), and is the reason that this is actually checked into a repo.

Would this make sense? If this feature sounds okay and no one is able to work on it atm I could also take a stab but first wanted to check if it sounds reasonable?

VRehnberg commented 2 weeks ago

Would this be an alias to fd --no-ignore-vsc --ignore-file .gitignore or something more?

AckslD commented 4 days ago

Hi @VRehnberg, thanks for pointing out this possibility. The additional functionality I would be interested in is to support .gitignore files anywhere. Ie not only in the cwd, but also in subfolders, at ~/.gitignore etc.