git/xdiff
Johannes Schindelin 98e6da8a36 xdl_merge(): fix and simplify conflict handling
Suppose you have changes in new1 to the original lines 10-20,
and changes in new2 to the original lines 15-25, then the
changes to 10-25 conflict. But it is possible that the next
changes in new1 still overlap with this change to new2.

So, in the next iteration we have to look at the same change
to new2 again.

The old code tried to be a bit too clever. The new code is
shorter and more to the point: do not fiddle with the ranges
at all.

Also, xdl_append_merge() tries harder to combine conflicts.
This is necessary, because with the above simplification,
some conflicts would not be recognized as conflicts otherwise:

In the above scenario, it is possible that there is no other
change to new1. Absent the combine logic, the change in new2
would be recorded _again_, but as a non-conflict.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
2006-12-05 13:30:22 -08:00
..
xdiff.h xdiff: add xdl_merge() 2006-12-02 17:28:19 -08:00
xdiffi.c xdiff: add xdl_merge() 2006-12-02 17:28:19 -08:00
xdiffi.h xdiff: add xdl_merge() 2006-12-02 17:28:19 -08:00
xemit.c Increase length of function name buffer 2006-11-23 22:51:41 -08: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 Fix hash function in xdiff library 2006-10-16 21:27:44 -07:00
xmerge.c xdl_merge(): fix and simplify conflict handling 2006-12-05 13:30:22 -08: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