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
Windows within bash provided with git (msys environment)
Describe your question, feature request, or bug.
In windows .gitconfig can contains ** in paths. Example:
doc**/
If this is a bug, what are the steps to reproduce the behavior?
Run command
rg unfindable
If this is a bug, what is the actual behavior?
Currently I get the following error:
./.git/info/exclude: line 12: error parsing glob 'doc**/': invalid use of **; must be one path component
./.git/info/exclude: line 13: error parsing glob 'Release**/': invalid use of **; must be one path component
If this is a bug, what is the expected behavior?
Support this pattern (at least on windows)
This pattern is even (documented)[https://git-scm.com/docs/gitignore#_pattern_format]
The text was updated successfully, but these errors were encountered:
ripgrep does support **. The error message is telling you exactly what the problem is: use of ** must be one path component. Indeed, the documentation you linked to explicitly says this:
A leading ** followed by a slash means match in all directories. For example, **/foo matches file or directory foo anywhere, the same as pattern foo. **/foo/bar matches file or directory bar anywhere that is directly under directory foo.
A trailing /** matches everything inside. For example, abc/** matches all files inside directory abc, relative to the location of the .gitignore file, with infinite depth.
A slash followed by two consecutive asterisks then a slash matches zero or more directories. For example, a/**/b matches a/b, a/x/b, a/x/y/b and so on.
Other consecutive asterisks are considered invalid.
What version of ripgrep are you using?
ripgrep 0.10.0 (rev 8a7db1a)
-SIMD -AVX (compiled)
How did you install ripgrep?
Github binary release
What operating system are you using ripgrep on?
Windows within bash provided with git (msys environment)
Describe your question, feature request, or bug.
In windows
.gitconfig
can contains**
in paths. Example:If this is a bug, what are the steps to reproduce the behavior?
Run command
If this is a bug, what is the actual behavior?
Currently I get the following error:
If this is a bug, what is the expected behavior?
Support this pattern (at least on windows)
This pattern is even (documented)[https://git-scm.com/docs/gitignore#_pattern_format]
The text was updated successfully, but these errors were encountered: