]> git.ipfire.org Git - thirdparty/git.git/commit - grep.c
grep: drop support for \0 in --fixed-strings <pattern>
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 1 Jul 2019 21:20:58 +0000 (23:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jul 2019 21:33:14 +0000 (14:33 -0700)
commit45d1f37ccc16ad53303910e150f7fbe36213aad8
tree84605f63ecfa24eb9a0bff3cd70aed2efa1b06cd
parent25754125cef278c7e9492fbd6dc4a28319b01f18
grep: drop support for \0 in --fixed-strings <pattern>

Change "-f <file>" to not support patterns with a NUL-byte in them
under --fixed-strings. We'll now only support these under
"--perl-regexp" with PCRE v2.

A previous change to grep's documentation changed the description of
"-f <file>" to be vague enough as to not promise that this would work.
By dropping support for this we make it a whole lot easier to move
away from the kwset backend, which we'll do in a subsequent change.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c
t/t7816-grep-binary-pattern.sh