From 81415ae52df4356f33099ec5ccfd7793cf4e10de Mon Sep 17 00:00:00 2001 From: LawAbidingCactus Date: Wed, 7 Aug 2019 17:47:18 +0000 Subject: doc: update to reflect glob matching behavior change Specifically, paths contains a `/` are not allowed to match any other slash in the path, even as a prefix. So `!.git` is the correct incantation for ignoring a `.git` directory that occurs anywhere in the path. --- doc/rg.1.txt.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/rg.1.txt.tpl b/doc/rg.1.txt.tpl index 4357ceb9..3ce0881d 100644 --- a/doc/rg.1.txt.tpl +++ b/doc/rg.1.txt.tpl @@ -143,16 +143,16 @@ would behave identically to the following command same with using globs - --glob=!git/* + --glob=!.git or --glob - !git/* + !.git would behave identically to the following command - rg --glob '!git/*' foo + rg --glob '!.git' foo ripgrep also provides a flag, *--no-config*, that when present will suppress any and all support for configuration. This includes any future support -- cgit v1.2.3