t4051: add test for comments preceding function lines
commiteced93bcb8647ad7dad6511e0d58a4dad470f473
authorRené Scharfe <l.s.r@web.de>
Sat, 18 Nov 2017 18:04:00 +0000 (18 19:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Nov 2017 00:36:06 +0000 (21 09:36 +0900)
treee8123f44a9db4ec45a7b024c417bb963d9955e60
parent89ea799ffcc5c8a0547d3c9075eb979256ee95b8
t4051: add test for comments preceding function lines

When showing function context it would be helpful to show comments
immediately before declarations, as they are most likely relevant.

Add a test for that, but without specifying the choice of lines too
rigidly in the test---we may want to stop before and not include
"/*" in the future, for example.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4051-diff-function-context.sh
t/t4051/hello.c