grep: add a test for backreferences in PCRE patterns
commit4aeb720d3f997bf09cff2c8c92f74da400950b24
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 20 May 2017 21:42:10 +0000 (20 21:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 May 2017 23:25:37 +0000 (21 08:25 +0900)
tree1067f5d08a7b86c02516b5017c89fcd6327b8d12
parent9001c1920c9b812efc671bdc0c313d0a3418d8ee
grep: add a test for backreferences in PCRE patterns

Add a test for backreferences such as (.)\1 in PCRE patterns. This
test ensures that the PCRE_NO_AUTO_CAPTURE option isn't turned
on. Before this change turning it on would break these sort of
patterns, but wouldn't break any tests.

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