git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
ABAndrey Butirsky <butirsky@gmail.com>
Date
Dec 29, 2021, 13:35 UTC
Message-ID
<fffeed2f-c956-d34f-ea5f-73f52e2d2be4@gmail.com>
In-Reply-To
<CA+JQ7M-gornjkB78Dgx-bHW7Ps=C2936vDNUakQ-VG8KAyZ=YA@mail.gmail.com>

This is exactly what I tried to avoid, since Git already seem has all the needed under the hood to prevent such disaster..

On 29.12.2021 15:13, Erik Cervin Edin wrote:
Show 8 quoted lines
> On a tangent, you can set up your own merge tools.
>
> So in git config you can add something like:
>
> [mergetool "both"]
> cmd = "sed -i -e '/^<<<<<<<$/d' -e '/^=======$/d' -e '/^>>>>>>>$/d' -- $MERGED"
>
> and call it with git mergetool --tool=both
Previous: Erik Cervin EdinNext: Erik Cervin Edin
Message 5 of 6 in “request: allow passing -X <strategy-option> to git checkout <path> to auto-solve merge conflicts”
  1. Andrey ButirskyDec 27, 2021
  2. Andrey ButirskyDec 28, 2021
  3. Erik Cervin EdinDec 28, 2021
  4. Erik Cervin EdinDec 29, 2021
  5. Andrey ButirskyDec 29, 2021
  6. Erik Cervin EdinDec 29, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.