t4015: improve coverage of function context test
commit124a895811fb22e89d41141e9c35a0eef7de1918
authorRené Scharfe <l.s.r@web.de>
Thu, 19 Dec 2019 17:35:43 +0000 (19 18:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Dec 2019 18:35:21 +0000 (19 10:35 -0800)
tree63e452fc05c80a3d9a5c9dce80a76ea80080dc74
parent0bb313a5529390276cf5c415891c804dea44fa34
t4015: improve coverage of function context test

Add a test that includes an actual function line in the test file to
check if context is expanded to include the whole function, and add an
ignored change before function context to check if that one stays hidden
while the originally ignored change within function context is shown.

This differs from the existing test, which is concerned with the case
where there is no function line at all in the file (and we might look
past the beginning of the file).

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4015-diff-whitespace.sh