cli: add --no-unicode, deprecate --no-pcre2-unicode

This adds a universal --no-unicode flag that is intended to work for all
supported regex engines. There is no point in retaining
--no-pcre2-unicode, so we make them aliases to the new flags and
deprecate them.
This commit is contained in:
Andrew Gallant
2020-02-17 15:34:59 -05:00
parent 711426a632
commit 75cbe88fa2
5 changed files with 90 additions and 34 deletions

View File

@@ -2,6 +2,14 @@ TBD
===
TODO
Deprecations:
* The `--no-pcre2-unicode` flag is deprecated. Instead, use the `--no-unicode`
flag, which applies to both the default regex engine and PCRE2. For now,
`--no-pcre2-unicode` and `--pcre2-unicode` are aliases to `--no-unicode`
and `--unicode`, respectively. The `--[no-]pcre2-unicode` flags may be
removed in a future release.
Performance improvements:
* [PERF #1381](https://github.com/BurntSushi/ripgrep/pull/1381):
@@ -27,6 +35,8 @@ Feature enhancements:
Add `--no-require-git` flag to allow ripgrep to respect gitignores anywhere.
* [FEATURE #1420](https://github.com/BurntSushi/ripgrep/pull/1420):
Add `--no-ignore-exclude` to disregard rules in `.git/info/exclude` files.
* FEATURE:
Add `--no-unicode` flag. This works on all supported regex engines.
Bug fixes: