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 use rg to search test2 directory and paths underneath it,but it doesn't work.
and in the gitignore, if I add test2, which also match test1/test2/a and test2/a,
but rg "test" -g "test2" only match test2 in the current directory(./test2), not match ./test1/test2
I see the debug output rg "test" -g "test2" which mean rg "test" -g "**/test2"
it match the test2 directory, but it doesn't match the subpath of test2, which is also written in the globset,
but rg document write Globbing rules match .gitignore globs, but it's actually not.
The text was updated successfully, but these errors were encountered:
As far as I can tell, this is behaving as expected. -g test2/ causes any directory named test2 to match, but nothing else. rg -g 'test2/**' should do what you want.
What version of ripgrep are you using?
ripgrep 0.8.1
-SIMD -AVX
How did you install ripgrep?
brew install ripgrep
What operating system are you using ripgrep on?
macos 10.14
Describe your question, feature request, or bug.
but in the man gitignore
so why rg not support the rule
I use rg to search test2 directory and paths underneath it,but it doesn't work.
and in the gitignore, if I add test2, which also match test1/test2/a and test2/a,
but rg "test" -g "test2" only match test2 in the current directory(./test2), not match ./test1/test2
I see the debug output rg "test" -g "test2" which mean rg "test" -g "**/test2"
it match the test2 directory, but it doesn't match the subpath of test2, which is also written in the globset,
but rg document write Globbing rules match .gitignore globs, but it's actually not.
The text was updated successfully, but these errors were encountered: