Thread (5 messages) flat view 5 messages, 2 authors, 2021-12-29

Re: request: allow passing -X <strategy-option> to git checkout <path> to auto-solve merge conflicts

From: Erik Cervin Edin <hidden>
Date: 2021-12-28 21:51:09

On Tue, Dec 28, 2021 at 9:44 PM Andrey Butirsky [off-list ref] wrote:
Thanks Erik, please post your further replies to the mailing list so
others could see it also.
Mea culpa
On a topic,
I'm not familiar with Git code-base so don't know if it even possible in
it's current architecture..
It looks like
builtin/checkout.c checkout_merged
is responsible and calls
ll-merge.c ll_merge

I think other commands that allow merging strategies may use other
"merge drivers".

From commit a944af1d86e6171d68ed2a3aa67b1d68f00e1fe8
merge: teach -Xours/-Xtheirs to binary ll-merge driver

The (discouraged) -Xours/-Xtheirs modes of merge are supposed to
give a quick and dirty way to come up with a random mixture of
cleanly merged parts and punted conflict resolution to take contents
from one side in conflicting parts.  These options however were only
passed down to the low level merge driver for text.
It looks possible.
But perhaps the sentiment is that it's not adviceable?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help