smashwilson / merge-conflicts

Resolve git merge conflicts in Atom
https://atom.io/packages/merge-conflicts
MIT License
432 stars 42 forks source link

Keep both? #244

Closed jglovier closed 8 years ago

jglovier commented 8 years ago

Is there a good way to keep both? Right now you are sort of forced to choose between options. There are some instances where I need to just keep both, and I've had to resort to copying one of the lines, accepting one of the diffs, then pasting back in the code.

Maybe with an button like Keep both it could just remove the conflict marking lines and keep everything else as is?

smashwilson commented 8 years ago

You actually already can! It's kind of hidden, though. Right-click within a conflict marker and you'll see a Resolution submenu that lets you choose "ours then theirs," "theirs then ours," and so on.

jglovier commented 8 years ago

Ah, awesome!

What do you think about making that more obvious with a little menu icon or something?

smashwilson commented 8 years ago

I like the idea - I was thinking about adding a cog menu to the navigator (the bar between the sides of the diff) for example.

Unfortunately me spending time on this package these days is... sporadic and burst-y at best. 😛

Oh, also, see the existing discussion in #185. Mind if I close this issue as a duplicate of that one?

jglovier commented 8 years ago

Sounds good. 👍