1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-17 20:28:03 +02:00

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.
This commit is contained in:
LawAbidingCactus 2019-08-07 17:47:18 +00:00 committed by Andrew Gallant
parent 5c4584aa7c
commit 81415ae52d

View File

@ -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