1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

doc: add config file note for --type-{add,clear}

This clarifies that persistence is possible via a configuration file.

Fixes #1571
This commit is contained in:
Andrew Gallant 2020-05-08 08:18:33 -04:00
parent cbfbe9312f
commit 9a858e4909
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@ Bug fixes:
* [BUG #1537](https://github.com/BurntSushi/ripgrep/issues/1537):
Fix match bug caused by inner literal optimization.
* [BUG #1571](https://github.com/BurntSushi/ripgrep/issues/1571):
Add note about configuration files in `--type-{add,clear}` docs.
* [BUG #1573](https://github.com/BurntSushi/ripgrep/issues/1573):
Fix incorrect `--count-matches` output when using look-around.

View File

@ -2877,7 +2877,7 @@ time. Multiple --type-add flags can be provided. Unless --type-clear is used,
globs are added to any existing globs defined inside of ripgrep.
Note that this MUST be passed to every invocation of ripgrep. Type settings are
NOT persisted.
NOT persisted. See CONFIGURATION FILES for a workaround.
Example:
@ -2915,7 +2915,7 @@ Clear the file type globs previously defined for TYPE. This only clears the
default type definitions that are found inside of ripgrep.
Note that this MUST be passed to every invocation of ripgrep. Type settings are
NOT persisted.
NOT persisted. See CONFIGURATION FILES for a workaround.
"
);
let arg = RGArg::flag("type-clear", "TYPE")