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

Re: [RFC] Bump {diff,merge}.renameLimit ?

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jul 11, 2021, 16:42 UTC
Message-ID
<87a6ms4wgw.fsf@evledraar.gmail.com>
In-Reply-To
<CABPp-BFzp3TCWiF1QAVSfywDLYrz=GOQszVM-sw5p0rSB8RWvw@mail.gmail.com>
On Sat, Jul 10 2021, Elijah Newren wrote:
Show 12 quoted lines
> I'm considering bumping {diff,merge}.renameLimit, which control the
> quadratic portion of rename/copy detection.  Should they be bumped?
> If so, moderately higher, or much higher?
>
> I lean towards a moderate bump for diff.renameLimit, and preferably
> more than just a moderate bump for merge.renameLimit.  I have
> calculations for what "moderate" translates to, based on a number of
> assumptions.  But there's several reasons to break with past
> guideposts for how these limits were picked.  See below for various
> arguments in each of the directions.
>
> So...thoughts?

I think the most relevant is something you didn't state: That when this limit was introduced (well, diff.*, not merge.*) there was no progress output in git.

We should err entirely on producing consistent and predictable results, and not change how git works when we it hits some arbitrary limit. To the extent that this is needed it's sufficient to opt-in to it, i.e. we do/should show a progress bar, advice() etc. showing why we're doing this much work, so those users can adjust the limit (or not).

Previous: Elijah NewrenNext: Elijah Newren
Message 2 of 9 in “[RFC] Bump {diff,merge}.renameLimit ?”
  1. Elijah NewrenJul 11, 2021
  2. Ævar Arnfjörð BjarmasonJul 11, 2021
  3. Elijah NewrenJul 12, 2021
  4. Ævar Arnfjörð BjarmasonJul 12, 2021
  5. Jeff KingJul 12, 2021
  6. Jeff KingJul 12, 2021
  7. Elijah NewrenJul 12, 2021
  8. Felipe ContrerasJul 12, 2021
  9. Jeff KingJul 12, 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.