author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 12 Dec 2011 21:16:06 +0000 (22:16 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Dec 2011 23:45:42 +0000 (15:45 -0800) | ||
commit | b8ffedca6f9e1043956ba611ae52bea449779456 | |
tree | 51725ec80c72f114e83e40091b5dc36f4737cf8e | tree | snapshot |
parent | 9859a023fef30ffebdd22ad9639c587ac720b8b6 | commit | diff |
grep: load funcname patterns for -W
git-grep avoids loading the funcname patterns unless they are needed.
ba8ea74 (grep: add option to show whole function as context,
2011-08-01) forgot to extend this test also to the new funcbody
feature. Do so.
The catch is that we also have to disable threading when using
userdiff, as explained in grep_threads_ok(). So we must be careful to
introduce the same test there.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-grep avoids loading the funcname patterns unless they are needed.
ba8ea74 (grep: add option to show whole function as context,
2011-08-01) forgot to extend this test also to the new funcbody
feature. Do so.
The catch is that we also have to disable threading when using
userdiff, as explained in grep_threads_ok(). So we must be careful to
introduce the same test there.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
grep.c | diff | blob | history | |
t/t7810-grep.sh | diff | blob | history |