merge: teach -Xours/-Xtheirs to symbolic link merge
commitfd48b464747c275b3d014b3f14d60d9ac19d184a
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 Sep 2017 02:40:42 +0000 (26 11:40 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Jan 2018 19:26:59 +0000 (3 11:26 -0800)
treec3108f46efe831642bc1edfbc83a452b943698b3
parent94c9fd268d4287f6fbfef84793288479905a7e48
merge: teach -Xours/-Xtheirs to symbolic link merge

The -Xours/-Xtheirs merge options were originally defined as a way
to "force" the resolution of 3way textual merge conflicts to take
one side without using your editor, hence did not even trigger in
situations where you would normally not get the <<< === >>> conflict
markers.

This was improved for binary files back in 2012 with a944af1d
("merge: teach -Xours/-Xtheirs to binary ll-merge driver",
2012-09-08).

Teach a similar trick to the codepath that deals with merging two
conflicting changes to symbolic links.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tested-by: Yaroslav Halchenko <yoh@onerussian.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c
t/t6037-merge-ours-theirs.sh