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

Please do not ignore file tracked by git, even it's in .gitignore #1127

Closed
co-dh opened this issue Nov 28, 2018 · 2 comments
Closed

Please do not ignore file tracked by git, even it's in .gitignore #1127

co-dh opened this issue Nov 28, 2018 · 2 comments
Labels
wontfix A feature or bug that is unlikely to be implemented or fixed.

Comments

@co-dh
Copy link

co-dh commented Nov 28, 2018

What version of ripgrep are you using?

ripgrep 0.10.0 (rev 8a7db1a)
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

tar -xzvf ripgrep-0.10.0-x86_64-unknown-linux-musl.tar.gz

Describe your question, feature request, or bug.

More like a feature than bug.
I added a file that is tracked by git to .gitignore by accident.
rg will ignore the file, but git grep will not.
expecting rg do not ignore the file.

@co-dh
Copy link
Author

co-dh commented Nov 28, 2018

why not just use git list-files instead code the logic yourself?

@BurntSushi
Copy link
Owner

This is unfortunately a bug that is unlikely to be fixed. The work around is to either take the file out of your gitignore or specifically whitelist it in either your gitignore or a separate .ignore file.

@BurntSushi BurntSushi added the wontfix A feature or bug that is unlikely to be implemented or fixed. label Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix A feature or bug that is unlikely to be implemented or fixed.
Projects
None yet
Development

No branches or pull requests

2 participants