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

[Bug?] "git show -s" still worries about renameLimit?

From
Junio C Hamano <gitster@pobox.com>
Date
May 4, 2025, 08:00 UTC
Message-ID
<xmqq8qncst4f.fsf@gitster.g>
$ git show -s | cat
warning: exhaustive rename detection was skipped due to too many files.
warning: you may want to set your diff.renameLimit variable to at least 6123 and retry the command.
commit a3a9dd8be6b8767e690b014715aefa2ba39672e2 (HEAD -> master)
Author: Junio C Hamano <gitster@pobox.com>
Date:   Sat Apr 19 14:27:03 2025 -0700
    Something something something

As we have -M (rename detection) on by default these days, and this particular commit has very many deletions and creations, if we were asking to show some diff (not necessarily patch text output, but just "--stat" or even "--raw") it is fair to warn about rename detection being limited by diff.renameLimit.

But the command knows that with "-s" the user declined to show any diff computation, so it feels wrong to even _count_ how many diff_filepairs there are and comparing with the renameLimit, in order to warn about busting the limit.

Next: Jeff King
Message 1 of 2 in “[Bug?] "git show -s" still worries about renameLimit?”
  1. Junio C HamanoMay 4, 2025
  2. Jeff KingMay 4, 2025

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.