summaryrefslogtreecommitdiff
path: root/t/t4051
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-28 13:41:50 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-28 13:41:50 +0900
commitf03490164811f19c8d2222a658398d67b14e905d (patch)
tree0427ffa7fee9b19daeb2bf0c92986a27ea9724d2 /t/t4051
parentMerge branch 'ma/branch-list-paginate' (diff)
parentgrep: show non-empty lines before functions with -W (diff)
downloadtgif-f03490164811f19c8d2222a658398d67b14e905d.tar.xz
Merge branch 'rs/include-comments-before-the-function-header'
"git grep -W", "git diff -W" and their friends learned a heuristic to extend a pre-context beyond the line that matches the "function pattern" (aka "diff.*.xfuncname") to include a comment block, if exists, that immediately precedes it. * rs/include-comments-before-the-function-header: grep: show non-empty lines before functions with -W grep: update boundary variable for pre-context t7810: improve check of -W with user-defined function lines xdiff: show non-empty lines before functions with -W xdiff: factor out is_func_rec() t4051: add test for comments preceding function lines
Diffstat (limited to 't/t4051')
-rw-r--r--t/t4051/hello.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/t4051/hello.c b/t/t4051/hello.c
index 63b1a1e4ef..73e767e178 100644
--- a/t/t4051/hello.c
+++ b/t/t4051/hello.c
@@ -1,4 +1,7 @@
+/*
+ * Hello comment.
+ */
static void hello(void) // Begin of hello
{
/*