aboutsummaryrefslogtreecommitdiffstats
path: root/grep.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-11-18 19:06:16 +0100
committerJunio C Hamano <gitster@pobox.com>2017-11-21 09:36:06 +0900
commit76e650d7d95662749fa5cbcc9f4faefb510334b0 (patch)
treeb060221ea1000d8dd4d2e96e742ec3770a3eb39e /grep.c
parent5c3ed90f3f56757f2af9cc327313e9df2e38cdd5 (diff)
downloadgit-76e650d7d95662749fa5cbcc9f4faefb510334b0.tar.gz
t7810: improve check of -W with user-defined function lines
The check for function context (-W) together with user-defined function line patterns reuses hello.c and pretends it's written in a language in which function lines contain either "printf" or a trailing curly brace. That's a bit obscure. Make the test easier to read by adding a small PowerShell script, using a simple, but meaningful expression, and separating out checks for different aspects into dedicated tests instead of simply matching the whole output byte for byte. Also include a test for showing comments before function lines like git Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
0 files changed, 0 insertions, 0 deletions