author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 22 May 2010 21:43:43 +0000 (23:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 May 2010 18:22:07 +0000 (11:22 -0700) | ||
commit | ed40a0951cedb70777669144478166aa5bb2cf9c | |
tree | 5683f6f847d31d83e2ddf9ff38f953eff916aa10 | tree | snapshot |
parent | f96e56733ab3e3ce5c79c27c673c746af1519a86 | commit | diff |
grep: support NUL chars in search strings for -F
Search patterns in a file specified with -f can contain NUL characters.
The current code ignores all characters on a line after a NUL.
Pass the actual length of the line all the way from the pattern file to
fixmatch() and use it for case-sensitive fixed string matching.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Search patterns in a file specified with -f can contain NUL characters.
The current code ignores all characters on a line after a NUL.
Pass the actual length of the line all the way from the pattern file to
fixmatch() and use it for case-sensitive fixed string matching.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c | diff | blob | history | |
grep.c | diff | blob | history | |
grep.h | diff | blob | history | |
t/t7008-grep-binary.sh | diff | blob | history |