summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2010-05-22 21:32:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-24 18:22:06 (GMT)
commit1baddf4b3781c0c714442adfda496d667e1850cd (patch)
tree988c2512300d4a574365695f5e7c54b3322c10d9 /t
parent321ffcc0556a94c461ac84667b35494c193804ec (diff)
downloadgit-1baddf4b3781c0c714442adfda496d667e1850cd.zip
git-1baddf4b3781c0c714442adfda496d667e1850cd.tar.gz
git-1baddf4b3781c0c714442adfda496d667e1850cd.tar.bz2
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t7008-grep-binary.sh4
1 files changed, 4 insertions, 0 deletions
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_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