| author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
| Sat, 22 May 2010 21:34:06 +0000 (23:34 +0200) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Mon, 24 May 2010 18:22:07 +0000 (11:22 -0700) | ||
| commit | 52d799a79f921cc47823a0455b0e646636410b65 | |
| tree | f766cc147a6bfb36e931ad5c5ddf25d591b578eb | tree | snapshot |
| parent | 1baddf4b3781c0c714442adfda496d667e1850cd | commit | diff |
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>
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>
| grep.c | diff | blob | history | |
| t/t7008-grep-binary.sh | diff | blob | history |