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

Re: [BUG] New git unable to show this commit completely?

From
Jeff King <peff@peff.net>
Date
May 29, 2020, 05:50 UTC
Message-ID
<20200529055045.GA1294228@coredump.intra.peff.net>
In-Reply-To
<HK0P153MB0113E08900C5C8B8311A4B24BF8F0@HK0P153MB0113.APCP153.PROD.OUTLOOK.COM>
On Fri, May 29, 2020 at 05:43:29AM +0000, Dexuan Cui wrote:
> However, in Ubuntu 20.04, the git doesn't show the deleted file
> arch/x86/mach-generic/probe.c at all:
It does; it's part of this rename:
>  arch/x86/{mach-generic/probe.c => kernel/probe_32.c} | 92 ++++++++++++++++++

Rename detection was turned on by default in Git v2.0. You can get the original output with:

  git show --stat --no-renames 7b38725318f4517af6168ccbff99060d67aba1c8

Or if you really don't like rename detection, you can disable it in the config, like:

  git config --global diff.renames false
-Peff
Previous: Dexuan CuiNext: Dexuan Cui
Message 2 of 3 in “[BUG] New git unable to show this commit completely?”
  1. Dexuan CuiMay 29, 2020
  2. Jeff KingMay 29, 2020
  3. Dexuan CuiMay 29, 2020

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.