summaryrefslogtreecommitdiff
path: root/compat/memmem.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-11-18 19:06:16 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-21 09:36:06 +0900
commit76e650d7d95662749fa5cbcc9f4faefb510334b0 (patch)
treeb060221ea1000d8dd4d2e96e742ec3770a3eb39e /compat/memmem.c
parentxdiff: show non-empty lines before functions with -W (diff)
downloadtgif-76e650d7d95662749fa5cbcc9f4faefb510334b0.tar.xz
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 'compat/memmem.c')
0 files changed, 0 insertions, 0 deletions