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

Re: [PATCH] merge-file: add --diff-algorithm option

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 19, 2023, 23:30 UTC
Message-ID
<xmqq7cmdpbhq.fsf@gitster.g>
In-Reply-To
<de04aec0-a195-45da-8951-bb30f2a629a3@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 7 quoted lines
> I can see there's an argument for changing the default algorithm of
> "git merge-file" to match what "ort" uses. I know Elijah found the
> histogram algorithm gave better results in his testing when he was
> developing "ort". While it would be a breaking change if on the
> average the new default gives better conflicts it might be worth
> it. This patch would mean that someone wanting to use the "myers"
> algorithm could still do so.

Sounds like a sensible thing to do. First allow to configure the custom algorithm from the command line option (and optionally via a configuration variable) and ship it in a release, start giving a warning if the using script did not specify the configuration or the command line option and used the current default and ship it in the next release, wait for a few releases and then finally flip the default, or something like that.

Thanks.
Previous: Antonin DelpeuchNext: Phillip Wood
Message 5 of 8 in “merge-file: add --diff-algorithm option”
  1. merge-file: add --diff-algorithm optionAntonin Delpeuch via GitGitGadget, Nov 8, 2023
  2. Antonin DelpeuchNov 17, 2023
  3. Phillip WoodNov 19, 2023
  4. Antonin DelpeuchNov 19, 2023
  5. Junio C HamanoNov 19, 2023
  6. Phillip WoodNov 19, 2023
  7. merge-file: add --diff-algorithm optionAntonin Delpeuch via GitGitGadget, Nov 20, 2023
  8. Phillip WoodNov 21, 2023

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.