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
I need to ignore src/lib/snarky/website. If I add this to .ignore and run rg foo src/ it has no effect. However, if I add lib/snarky/website to src/.ignore then it is ignored.
Furthermore rg foo src/lib fails (does not ignore) with both src/.ignoreand .ignore but succeeds with src/lib/.ignore
Whether or not this is a bug is debatable, but it is surprising and cumbersome, since it requires that I match my .ignore files to my search command. Sometimes I want to search src/ and sometimes src/lib, so I have to sprinkle .ignore files throughout my source tree.
The text was updated successfully, but these errors were encountered:
What version of ripgrep are you using?
ripgrep 12.1.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
How did you install ripgrep?
I don't remember
What operating system are you using ripgrep on?
MacOS 10.15.7
Describe your bug.
I need to ignore
src/lib/snarky/website
. If I add this to.ignore
and runrg foo src/
it has no effect. However, if I addlib/snarky/website
tosrc/.ignore
then it is ignored.Furthermore
rg foo src/lib
fails (does not ignore) with bothsrc/.ignore
and.ignore
but succeeds withsrc/lib/.ignore
Whether or not this is a bug is debatable, but it is surprising and cumbersome, since it requires that I match my .ignore files to my search command. Sometimes I want to search
src/
and sometimessrc/lib
, so I have to sprinkle.ignore
files throughout my source tree.The text was updated successfully, but these errors were encountered: