I use the diff3
conflict marker style, so when I get a conflict I get the two sides, but also the original code (under the |||||||
heading):
<<<<<<< HEAD
GreenMessage.send(include_signature: true)
||||||| merged common ancestor
BlueMessage.send(include_signature: true)
=======
BlueMessage.send(include_signature: false)
>>>>>>> merged-branch
(example from Take the pain out of git conflict resolution: use diff3 – nilbus.com)
When I get these conflict, what I (almost?) always want to see is the diff between the HEAD and the original code and the diff between the merge and the original code. i.e. I want to see that one of the changes was
- BlueMessage.send(include_signature: true)
+ GreenMessage.send(include_signature: true)
…and the other change was
- BlueMessage.send(include_signature: true)
+ BlueMessage.send(include_signature: false)
>>>>>>> merged-branch
Is there anything built into Emacs (or Magit, perhaps?) for showing me these two diffs based on the diff3 conflict markers?