Makes expressions Perl compatible by calling grep with the -P instead of the -E flag.
Basically, git grep -nwHEI, grep -Ev and grep -d "${action}" -nwHEI calls now are run with -nwHPI and -Pv flags.
Affected functions: scan_history, git_grep, regular_grep, process_output.
This doesn't break backwards compatibility since Perl Compatible Regex is a superset of Extended Regex.
Also, README.rst and secrets.1 now specify that PCRE is supported.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Solves #145
Makes expressions Perl compatible by calling
grep
with the-P
instead of the-E
flag. Basically,git grep -nwHEI
,grep -Ev
andgrep -d "${action}" -nwHEI
calls now are run with-nwHPI
and-Pv
flags. Affected functions: scan_history, git_grep, regular_grep, process_output. This doesn't break backwards compatibility since Perl Compatible Regex is a superset of Extended Regex. Also,README.rst
andsecrets.1
now specify that PCRE is supported.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.