summaryrefslogtreecommitdiff
path: root/line-log.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-11-18 19:08:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-21 09:36:06 +0900
commita5dc20b0701cee53b2c37a4aa3a339b48d5bb298 (patch)
treea77c5e843d10486bb70eea127cceadad419f159a /line-log.c
parentgrep: update boundary variable for pre-context (diff)
downloadtgif-a5dc20b0701cee53b2c37a4aa3a339b48d5bb298.tar.xz
grep: show non-empty lines before functions with -W
Non-empty lines before a function definition are most likely comments for that function and thus relevant. Include them in function context. Such a non-empty line might also belong to the preceding function if there is no separating blank line. Stop extending the context upwards also at the next function line to make sure only one extra function body is shown at most. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.c')
0 files changed, 0 insertions, 0 deletions