summaryrefslogtreecommitdiff
path: root/t/t7008-grep-binary.sh
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2010-05-22 21:34:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-24 18:22:07 (GMT)
commit52d799a79f921cc47823a0455b0e646636410b65 (patch)
treef766cc147a6bfb36e931ad5c5ddf25d591b578eb /t/t7008-grep-binary.sh
parent1baddf4b3781c0c714442adfda496d667e1850cd (diff)
downloadgit-52d799a79f921cc47823a0455b0e646636410b65.zip
git-52d799a79f921cc47823a0455b0e646636410b65.tar.gz
git-52d799a79f921cc47823a0455b0e646636410b65.tar.bz2
grep: continue case insensitive fixed string search after NUL chars
Functions for C strings, like strcasestr(), can't see beyond NUL characters. Check if there is such an obstacle on the line and try again behind it. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7008-grep-binary.sh')
-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 9adc9ed..9660842 100755
--- a/t/t7008-grep-binary.sh
+++ b/t/t7008-grep-binary.sh
@@ -55,4 +55,8 @@ test_expect_success 'git grep -F ile a' '
git grep -F ile a
'
+test_expect_success 'git grep -Fi iLE a' '
+ git grep -Fi iLE a
+'
+
test_done