]> git.neil.brown.name Git - wiggle.git/commit
merge: remove useless context at the start of a conflict.
authorNeilBrown <neilb@suse.de>
Wed, 13 Feb 2013 23:22:18 +0000 (10:22 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 13 Feb 2013 23:22:18 +0000 (10:22 +1100)
commit9c8b9a1a1407eb6893dab5cd001fe2bfca3d0d12
tree86ed7d946748631c23a53093ff944bbd4aee0f58
parentde0cb8be53896f712c568a082613ce0c5ac20d7b
merge: remove useless context at the start of a conflict.

There are two fixes here.

The first allows the newline at the end of an unchanged region to be
the 'first' newline found so that if there are several others to
provide backup, it will be used.

The second allows the start-of-file to be strong enough context to
not require three full lines of explicit context.

Then we change a lot of the self-tests to match.  In each case the
result is a clear improvement.

Signed-off-by: NeilBrown <neilb@suse.de>
merge2.c
tests/linux/inode-justrej/lmerge
tests/linux/md-loop/merge
tests/linux/raid1-A/merge
tests/simple/conflict/merge
tests/simple/conflictmixed/lmerge
tests/simple/conflictmixed/merge
tests/simple/multiple-add/lmerge
tests/simple/show-wiggle-1/Wmerge