Skip to content

Commit

Permalink
doc: add config file note for --type-{add,clear}
Browse files Browse the repository at this point in the history
This clarifies that persistence is possible via a configuration file.

Fixes #1571
  • Loading branch information
BurntSushi committed May 9, 2020
1 parent cbfbe93 commit 9a858e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions crates/core/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 9a858e4

Please sign in to comment.