aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2017-05-25 19:45:27 +0000
committerJunio C Hamano <gitster@pobox.com>2017-05-26 12:52:37 +0900
commit219e65b65ca0f1352f5fbd4233520b6fc5be3726 (patch)
tree30341cd8c247d95b05b0331108a90f1f854096ba /Makefile
parente0b9f8ae09a47b59e0a658d35a3430d9c98fd177 (diff)
downloadgit-219e65b65ca0f1352f5fbd4233520b6fc5be3726.tar.gz
git-219e65b65ca0f1352f5fbd4233520b6fc5be3726.tar.xz
grep: factor test for \0 in grep patterns into a function
Factor the test for \0 in grep patterns into a function. Since commit 9eceddeec6 ("Use kwset in grep", 2011-08-21) any pattern containing a \0 is considered fixed as regcomp() can't handle it. This change makes later changes that make use of either has_null() or is_fixed() (but not both) smaller. While I'm at it make the comment conform to the style guide, i.e. add an opening "/*\n". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions