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

File ignored by rg due to .gitignore while git does not ignore it #1197

Closed
futpib opened this issue Feb 11, 2019 · 1 comment
Closed

File ignored by rg due to .gitignore while git does not ignore it #1197

futpib opened this issue Feb 11, 2019 · 1 comment
Labels
duplicate An issue that is duplicative of another.

Comments

@futpib
Copy link

futpib commented Feb 11, 2019

What version of ripgrep are you using?

ripgrep 0.10.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)

How did you install ripgrep?

From Arch Linux repos.

What operating system are you using ripgrep on?

Linux futpib-laptop 4.19.19-1-lts #1 SMP Thu Jan 31 17:56:49 CET 2019 x86_64 GNU/Linux

If this is a bug, what are the steps to reproduce the behavior?

Clone this repo: https://github.com/futpib/ripgrep-issue-1197.git
Run rg findme there.

The repo contains a .gitignore:

_*.*

and a ./src/_foo/bar.js file:

findme

If this is a bug, what is the actual behavior?

The file is not found (ignored with a glob from .gitignore).

Output of rg --debug findme:
https://gist.github.com/futpib/179fa5a027637652c12d4704b88c3b99#file-gistfile1-txt

If this is a bug, what is the expected behavior?

rg should have found the file, as it is not ignored by git. git grep findme finds it.

@BurntSushi
Copy link
Owner

This is fixed on master, probably by #1093.

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants