Closed wetneb closed 4 months ago
Consider the following merge scenario:
{ int a = 2; }
{ }
{ int a = 2; int b = 3; }
Successful merge without any conflict:
Conflicting merge:
{ <<<<<<< ours ||||||| ancestor int a = 2; ======= int a = 2; int b = 3; >>>>>>> theirs }
One can check that git merge-file -p /tmp/ours /tmp/ancestor /tmp/theirs indeed produces the output above.
git merge-file -p /tmp/ours /tmp/ancestor /tmp/theirs
Thanks for the bug report! I'll try to dig into the root cause.
Fixed by #30
Consider the following merge scenario:
Ancestor
Ours
Theirs
Current diffy merge output
Successful merge without any conflict:
Expected merge output
Conflicting merge:
One can check that
git merge-file -p /tmp/ours /tmp/ancestor /tmp/theirs
indeed produces the output above.