]> git.ipfire.org Git - thirdparty/git.git/commit - xdiff/xdiff.h
xdiff-merge: optionally show conflicts in "diff3 -m" style
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Aug 2008 08:10:04 +0000 (01:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 31 Aug 2008 02:41:43 +0000 (19:41 -0700)
commite0af48e49682ea3345f932f6b9e7fa7c5e5e611a
tree43cd383edc42ef508071fa6886a9e1fe10a7d281
parentf2b25dd81f4ccbf42700bd15feeb2becf10331ab
xdiff-merge: optionally show conflicts in "diff3 -m" style

When showing conflicting merges, we traditionally followed RCS's merge
output format.  The output shows:

 <<<<<<<
 postimage from one side;
 =======
 postimage of the other side; and
 >>>>>>>

Some poeple find it easier to be able to understand what is going on when
they can view the common ancestor's version, which is used by "diff3 -m",
which shows:

 <<<<<<<
 postimage from one side;
 |||||||
 shared preimage;
 =======
 postimage of the other side; and
 >>>>>>>

This is an initial step to bring that as an optional feature to git.
Only "git merge-file" has been converted, with "--diff3" option.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge-file.c
t/t6023-merge-file.sh
xdiff/xdiff.h
xdiff/xmerge.c