From 1baddf4b3781c0c714442adfda496d667e1850cd Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Sat, 22 May 2010 23:32:43 +0200 Subject: grep: use memmem() for fixed string search Allow searching beyond NUL characters by using memmem() instead of strstr(). Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- t/t7008-grep-binary.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/t7008-grep-binary.sh') diff --git a/t/t7008-grep-binary.sh b/t/t7008-grep-binary.sh index 4a12d97922..9adc9ed6fe 100755 --- a/t/t7008-grep-binary.sh +++ b/t/t7008-grep-binary.sh @@ -51,4 +51,8 @@ test_expect_success 'git grep -q ina a' ' test_cmp expect actual ' +test_expect_success 'git grep -F ile a' ' + git grep -F ile a +' + test_done -- cgit v1.2.3