Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting "--no-ignore-parent" like ripgrep, or support ignoring specifit .gitignore? #787

Closed
maple3142 opened this issue Jul 1, 2021 · 1 comment · Fixed by #817
Closed

Comments

@maple3142
Copy link

My problem is that I use my home directory as a git repo to manage my dotfiles, so there is a ~/.gitignore that ignores everything except some files. The problem is fd won't work by default at this situation. Although there is a --no-ignore-vcs, but I still want .gitignore to be respected when I am in a project directory.

Ripgrep has a flag --no-ignore-parent that can ignore .gitignore in parent directory, which works well enough. A even better solution could introduce a new flag to exclude certain .gitignore only, such as fd --no-ignore-file ~/.gitignore.

Similar ripgrep issue: BurntSushi/ripgrep#372

@sharkdp
Copy link
Owner

sharkdp commented Aug 8, 2021

I'm okay with adding a new option, analogous to ripgrep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants