1
0
mirror of https://github.com/git/git.git synced 2024-09-30 05:32:08 +02:00
git/xdiff
René Scharfe 392f6d3166 xdiff: ignore empty lines before added functions with -W
If a new function and a preceding empty line is appended, diff -W shows
the previous function in full in order to provide context for that empty
line.  In most languages empty lines between sections are not
interesting in and off themselves and showing a whole extra function for
them is not what we want.

Skip empty lines when checking of the appended chunk starts with a
function line, thereby avoiding to extend the context just for them.

Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-05-31 13:08:56 -07:00
..
xdiff.h
xdiffi.c
xdiffi.h
xemit.c xdiff: ignore empty lines before added functions with -W 2016-05-31 13:08:56 -07:00
xemit.h
xhistogram.c
xinclude.h
xmacros.h
xmerge.c Merge branch 'ps/plug-xdl-merge-leak' 2016-02-26 13:37:22 -08:00
xpatience.c
xprepare.c
xprepare.h
xtypes.h
xutils.c
xutils.h