git/xdiff
Johannes Schindelin 2344d47fba diff: fix 2 whitespace issues
When whitespace or whitespace change was ignored, the function
xdl_recmatch() returned memcmp() style differences, which is wrong,
since it should return 0 on non-match.

Also, there were three horrible off-by-one bugs, even leading to wrong
hashes in the whitespace special handling.

The issue was noticed by Ray Lehtiniemi.

For good measure, this commit adds a test.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-10-12 09:30:14 -07:00
..
xdiff.h xdiff: generate "anti-diffs" aka what is common to two files 2006-06-28 22:24:32 -07:00
xdiffi.c Fix more typos, primarily in the code 2006-07-10 00:36:44 -07:00
xdiffi.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xemit.c xdiff: generate "anti-diffs" aka what is common to two files 2006-06-28 22:24:32 -07:00
xemit.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xinclude.h xdiff: Show function names in hunk headers. 2006-03-27 18:43:51 -08:00
xmacros.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xprepare.c Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xprepare.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xtypes.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xutils.c diff: fix 2 whitespace issues 2006-10-12 09:30:14 -07:00
xutils.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00