(Question adapted from How do I combine the two variants of a conflict in emacs' emerge?)
I have a file with merge conflict markers. It looks similar to this:
<<<<<<< HEAD
522ADC9C14B2FD9D00F56BAD /* close_test_button.png in Resources */,
522ADC9D14B2FD9D00F56BAD /* [email protected] in Resources */,
522ADCA014B2FDB100F56BAD /* test_failed.png in Resources */,
522ADCA114B2FDB100F56BAD /* [email protected] in Resources */,
=======
EC1633C014B2F3E3004B52E7 /* arrow.png in Resources */,
EC1633C114B2F3E3004B52E7 /* [email protected] in Resources */,
EC1633C214B2F3E3004B52E7 /* groups.png in Resources */,
EC1633C314B2F3E3004B52E7 /* [email protected] in Resources */,
>>>>>>> beta_2.8
I use M-x vc-resolve-conflicts to start Ediff. I can select variant A or B by hitting a or b on my keyboard, but how do I combine both variants, one after the other?
You can switch to buffer "C" and edit it. Press + If you've already chose A or B to restore the diff.
If what you're after is to press a key to automatically remove the diff markers, I can only say that seems like a terrible idea.
Manual merges should be left up to the user. To remove clues as to where each diff region came from doesn't feel right to me.
You can customize the markers to be blank lines with this:
M-: