commit | 1baddf4b3781c0c714442adfda496d667e1850cd | [log] [tgz] |
---|---|---|
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | Sat May 22 23:32:43 2010 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Mon May 24 11:22:06 2010 -0700 |
tree | 988c2512300d4a574365695f5e7c54b3322c10d9 | |
parent | 321ffcc0556a94c461ac84667b35494c193804ec [diff] [blame] |
grep: use memmem() for fixed string search Allow searching beyond NUL characters by using memmem() instead of strstr(). Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/t/t7008-grep-binary.sh b/t/t7008-grep-binary.sh index 4a12d97..9adc9ed 100755 --- a/t/t7008-grep-binary.sh +++ b/t/t7008-grep-binary.sh
@@ -51,4 +51,8 @@ test_cmp expect actual ' +test_expect_success 'git grep -F ile a' ' + git grep -F ile a +' + test_done