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

Re: [PATCH] merge-file: warn for implicit 'myers' algorithm

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 6, 2024, 06:06 UTC
Message-ID
<xmqqed873vgn.fsf@gitster.g>
In-Reply-To
<CABPp-BEspjHqNXSAwptgxP059qOFU6MzwAd23-893Nw99ft_Ew@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 6 quoted lines
> The previous discussions felt to me like we were moving towards
> consensus, but while I found that encouraging since I think histogram
> would eventually be a better default, I did not make any actual
> proposals and try to push further towards consensus because there are
> a couple known issues that I think should be fixed before we consider
> flipping the default.
OK.
Show 5 quoted lines
> I have some work-in-progress that was put on
> the backburner a few years ago that I would like to pick up again, and
> if successful, investigate how much that helps general cases in a
> format that can help people make educated decisions, and then again
> float the idea of changing the default.
Sounds like a good plan.
> If consensus is reached, then
> we'd change the default across the board -- diff/log/merge-file/etc.
> rather than just the somewhat rarely used merge-file.  

Everybody uses diff.c::diff_algorithm somehow, will be affected by the diff.algorithm configuration variable, and everybody should honor "--diff-algorithm=<choice>" command line option to override?

It sounds like a great plan. If ort for some reason performs better with histogram while format-patch works better with minimal, we could extend the configuration system to make diff.<cmd>.algorithm override the more generic diff.algorithm and do similarly silly things. We may want to also teach the diff plumbing commands to ignore diff.algorithm for better reproducibility but we may need to wait for Git 3.0 to do that.

> At least,
> that's my current plan in this area; if others think I should
> investigate things in a different order or would like to see
> additional steps planned into this journey, please do let me know.
Thanks.
Previous: Antonin DelpeuchNext: Antonin Delpeuch
Message 7 of 9 in “merge-file: warn for implicit 'myers' algorithm”
  1. merge-file: warn for implicit 'myers' algorithmAntonin Delpeuch via GitGitGadget, Jul 3, 2024
  2. Junio C HamanoJul 3, 2024
  3. Antonin DelpeuchJul 3, 2024
  4. Junio C HamanoJul 3, 2024
  5. Elijah NewrenJul 5, 2024
  6. Antonin DelpeuchJul 5, 2024
  7. Junio C HamanoJul 6, 2024
  8. Antonin DelpeuchJul 6, 2024
  9. Junio C HamanoJul 6, 2024

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.