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

[PATCH 0/1] Use the diff.rename configuration for git status

From
Eckhard S. Maaß <eckhard.s.maass@googlemail.com>
Date
Apr 30, 2018, 09:34 UTC
Message-ID
<20180430093421.27551-1-eckhard.s.maass@gmail.com>
Hello,

I have been irritated that the output of git status does not adhere to the same diff settings than the other commands like git show. I think it is more of an oversight and git status is also intended to show the same kind of rename detection (without any more options passed a long the command line) than other similar commands do. This patch should fix that issue.

I am aware that this change would also change how the porcelain variations of git status behave for rename detection. However, I could not find any hints that the rename detection should be fixed. As the default would not change (50% rename threshold), this still seems reasonable to me.

As for documentation, I am unsure what and where to add: for me it seems like git status should already behave that way, but it is a change and so far none else seemed to have brought it up.

Greetings, Eckhard

Eckhard S. Maaß (1):
  wt-status: use rename settings from init_diff_ui_defaults
 builtin/commit.c       |  2 +-
 t/t4001-diff-rename.sh | 12 ++++++++++++
 wt-status.c            |  4 ----
 3 files changed, 13 insertions(+), 5 deletions(-)
-- 
2.17.0.252.gfe0a9eaf31
Next: Eckhard S. Maaß
Message 1 of 3 in “Use the diff.rename configuration for git status”
  1. 0/1 Use the diff.rename configuration for git statusEckhard S. Maaß, Apr 30, 2018
  2. 1/1 wt-status: use rename settings from init_diff_ui_defaultsEckhard S. Maaß, Apr 30, 2018
  3. Elijah NewrenApr 30, 2018

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.