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

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

From
DCDexuan Cui <decui@microsoft.com>
Date
May 29, 2020, 05:43 UTC
Message-ID
<HK0P153MB0113E08900C5C8B8311A4B24BF8F0@HK0P153MB0113.APCP153.PROD.OUTLOOK.COM>

Hi, In CentOS 7.8, git 1.8.3.1 can show this commit from the mainline Linux kernel correctly:

[decui@localhost linus.git]$ git --version git version 1.8.3.1

[decui@localhost linus.git]$ git show --stat 7b38725318f4517af6168ccbff99060d67aba1c8
commit 7b38725318f4517af6168ccbff99060d67aba1c8
Author: Ingo Molnar <mingo@elte.hu>
Date:   Wed Jan 28 19:11:44 2009 +0100
    x86: remove subarchitecture support code
    Remove remaining bits of the subarchitecture code. Now that all the
    special platforms are runtime probed and runtime handled, we can remove
    these facilities.
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
 arch/x86/Makefile              |   5 --
 arch/x86/kernel/Makefile       |   2 +-
 arch/x86/kernel/probe_32.c     | 248 +++++++++++++++++++++++++++++++++++++++
 arch/x86/mach-generic/Makefile |   7 ---
 arch/x86/mach-generic/probe.c  | 156 ---------------------------------------
 5 files changed, 249 insertions(+), 169 deletions(-)

However, in Ubuntu 20.04, the git doesn't show the deleted file arch/x86/mach-generic/probe.c at all:

root@decui-u2004:~/linux# git --version git version 2.25.1

root@decui-u2004:~/linux# git show --stat 7b38725318f4517af6168ccbff99060d67aba1c8
commit 7b38725318f4517af6168ccbff99060d67aba1c8
Author: Ingo Molnar <mingo@elte.hu>
Date:   Wed Jan 28 19:11:44 2009 +0100
    x86: remove subarchitecture support code
    Remove remaining bits of the subarchitecture code. Now that all the
    special platforms are runtime probed and runtime handled, we can remove
    these facilities.
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
 arch/x86/Makefile                                    |  5 ----
 arch/x86/kernel/Makefile                             |  2 +-
 arch/x86/{mach-generic/probe.c => kernel/probe_32.c} | 92 ++++++++++++++++++
 arch/x86/mach-generic/Makefile                       |  7 -----
 4 files changed, 93 insertions(+), 13 deletions(-)

I tried the latest git release git-2.26.2.tar.gz from kernel.org, and it also has the same issue.

The web interface has the same issue too: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b38725318f4517af6168ccbff99060d67aba1c8

It looks there is a bug introduced in some git verson newer than 1.8.3.1?

Thanks, -- Dexuan

Next: Jeff King
Message 1 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.