]> git.neil.brown.name Git - wiggle.git/commit
merge: Remove noise from --show-wiggles output.
authorNeilBrown <neilb@suse.de>
Fri, 1 Mar 2013 05:02:15 +0000 (16:02 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 1 Mar 2013 05:02:15 +0000 (16:02 +1100)
commita25ea5bf02ad12620e78a4d7b8d3603d0b1240ea
treedc989798bfcc52db0c07f8ac795cdb89f164b389
parent0c4847dccb6f0507e7113f2ddbe2732c6c46a46c
merge: Remove noise from --show-wiggles output.

When --show-wiggles is used with whole files (current, orig, new) and
extraneous text in orig/new (Which isn't a change, so should be
ignored) is treated as a wiggle and causes a conflict to be shown.
Obviously not good.

So insist that any show-wiggle conflict contains at leas a Changed or
a Conflict.  Also allow Changed and Unmatched to be 'near' each other,
not only on the same line, to signal a wiggle.  Current 'near' measure
is 3 lines.

Signed-off-by: NeilBrown <neilb@suse.de>
merge2.c
tests/simple/show-wiggle-3/Wmerge [new file with mode: 0644]
tests/simple/show-wiggle-3/new [new file with mode: 0644]
tests/simple/show-wiggle-3/new2 [new file with mode: 0644]
tests/simple/show-wiggle-3/orig [new file with mode: 0644]