Skip to content
Discussion options

You must be logged in to vote

This is somewhat surprising given that the man page states twice that rg -uuu is like grep -r:

It is. The problem is that you aren't using rg -uuu. You're using rg -g '!build.ninja' -uuu. None of the -u flags override explicit globs. Explicit globs always have priority. I imagine, for example, that some folks might put -uuu in their ripgrep config file and use, e.g., -g '*.toml' to achieve something similar to grep's --include.

But that's for -g/--glob... What about --no-ignore-files? Ah, the man page says:

This does not imply --no-ignore-files, since --ignore-file is specified explicitly as a command line argument.

Add variations of the --glob and/or --ignore-file arguments, e.g. --d…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants