why isn't a gitignore pattern like deep/deeper
matched at every level relative to the directory tree?
#2824
-
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?13.0.0 How did you install ripgrep?brew install ripgrep What operating system are you using ripgrep on?macOS 12.5.1 Describe your bug.I'm trying to understand how Let's say I have the following structure:
And this is the content of my
According to my understanding of the spec that pattern is relative to the directory where the Yet if I run this command while at the rg deep --files I get the following output, basically the
So I'm not quite understanding how that works in
I guess the more specific questions are:
What are the steps to reproduce the behavior?
What is the actual behavior?
What is the expected behavior?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The spec says:
Which means that if a separator is in the pattern, then it is matched relative to the directory of the Also, if ripgrep did work according to your understanding, then it should have ignored both
That's the goal but there can (and there are) bugs.
The path relative to the corresponding ignore file.
It would ignore
Notice that I added |
Beta Was this translation helpful? Give feedback.
It does. From the man page: