You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using ripgrep over the entire Android AOSP tree produces quite a few errors parsing .gitignore files. There's 2 concerns with this: 1) when using ripgrep, I don't really care about its opinion on the .gitignore files of another project 2) I'm assuming this means there's a behavior difference between real git and ripgrep's gitignore parsing.
Examples:
./external/glide/.gitignore: line 24: error parsing glob '**local.properties': invalid use of **; must be one path component
./external/chromium-trace/catapult/telemetry/bin/.gitignore: line 2: error parsing glob '!**.sha1': invalid use of **; must be one path component
I'm not sure what the correct solution here should be, but these error messages are not useful and obscure the real output.
The text was updated successfully, but these errors were encountered:
You can silence the error messages with the --no-messages flag. To make the effect permanent you can add the option either to a shell alias or to your config file.
As far as behaviour differences, it does appear that git (2.17.1) accepts both of those patterns (confirmed via git status and git check-ignore), even though the documentation explicitly states that ** is invalid unless preceded and/or followed by a slash. 🤷♀️
What version of ripgrep are you using?
ripgrep 0.8.1
-SIMD -AVX
How did you install ripgrep?
cargo
What operating system are you using ripgrep on?
Linux (Ubuntu 16.04)
Describe your question, feature request, or bug.
Using ripgrep over the entire Android AOSP tree produces quite a few errors parsing .gitignore files. There's 2 concerns with this: 1) when using ripgrep, I don't really care about its opinion on the .gitignore files of another project 2) I'm assuming this means there's a behavior difference between real git and ripgrep's gitignore parsing.
Examples:
I'm not sure what the correct solution here should be, but these error messages are not useful and obscure the real output.
The text was updated successfully, but these errors were encountered: