edamagit icon indicating copy to clipboard operation
edamagit copied to clipboard

Allow for accepting ours/theirs for unstaged files from a merge

Open joelpryde opened this issue 4 years ago • 2 comments

Apparently emacs magit has this behavior for handling merges that would be super handy:

1. Merge one branch into another and encounter a conflict
2. In the Magit buffer, there will be sections for Merging master, and Unstaged changes, Staged changes. The conflicted file is in Unstaged changes
3. On the line with the conflicted file, hit k to discard the changes (i.e., the conflicted changes)
4. In the minibuffer, you will see the answer:
For <conflicted file> checkout: [o]ur stage, [t]heir stage, [c]onflict, or [C-g] to abort

https://emacs.stackexchange.com/a/19319

Not sure how hard it would be to add this but I would use it many times a day! Loving Edamagit btw, so thank you!

joelpryde avatar Jun 09 '21 20:06 joelpryde

Personally, I never used this part of magit. Thank you for bringing it to my attention.

In the meanwhile, before this gets added,... With edamagit I've been pretty happy using the built-in conflict resolution UI in vscode. By just pressing enter on the files in the magit status view when there is a conflict, I'm taken straight to the conflict resolution UI for that change.

kahole avatar Jun 15 '21 08:06 kahole

Didn't realize that was possible! I'll give that a go in the interim. Thanks.

joelpryde avatar Sep 06 '21 11:09 joelpryde