{"thread":{"id":"53578","subject":"[BUG] New git unable to show this commit completely?","startedAt":"2020-05-29T05:43:36Z","lastAt":"2020-05-29T06:16:29Z","messageCount":3,"participants":["Dexuan Cui","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"398833","messageId":"HK0P153MB0113E08900C5C8B8311A4B24BF8F0@HK0P153MB0113.APCP153.PROD.OUTLOOK.COM","threadId":"53578","inReplyTo":null,"subject":"[BUG] New git unable to show this commit completely?","fromName":"Dexuan Cui","fromEmail":"decui@microsoft.com","sentAt":"2020-05-29T05:43:29Z","receivedAt":"2020-05-29T05:43:36Z","isPatch":false,"sender":{"key":"decui@microsoft.com","avatar":null},"body":"Hi,\nIn CentOS 7.8, git 1.8.3.1 can show this commit from the mainline Linux kernel correctly:\n\n[decui@localhost linus.git]$ git --version\ngit version 1.8.3.1\n\n[decui@localhost linus.git]$ git show --stat 7b38725318f4517af6168ccbff99060d67aba1c8\ncommit 7b38725318f4517af6168ccbff99060d67aba1c8\nAuthor: Ingo Molnar <mingo@elte.hu>\nDate:   Wed Jan 28 19:11:44 2009 +0100\n\n    x86: remove subarchitecture support code\n\n    Remove remaining bits of the subarchitecture code. Now that all the\n    special platforms are runtime probed and runtime handled, we can remove\n    these facilities.\n\n    Signed-off-by: Ingo Molnar <mingo@elte.hu>\n\n arch/x86/Makefile              |   5 --\n arch/x86/kernel/Makefile       |   2 +-\n arch/x86/kernel/probe_32.c     | 248 +++++++++++++++++++++++++++++++++++++++\n arch/x86/mach-generic/Makefile |   7 ---\n arch/x86/mach-generic/probe.c  | 156 ---------------------------------------\n 5 files changed, 249 insertions(+), 169 deletions(-)\n\n\nHowever, in Ubuntu 20.04, the git doesn't show the deleted file\narch/x86/mach-generic/probe.c at all:\n\nroot@decui-u2004:~/linux# git --version\ngit version 2.25.1\n\nroot@decui-u2004:~/linux# git show --stat 7b38725318f4517af6168ccbff99060d67aba1c8\ncommit 7b38725318f4517af6168ccbff99060d67aba1c8\nAuthor: Ingo Molnar <mingo@elte.hu>\nDate:   Wed Jan 28 19:11:44 2009 +0100\n\n    x86: remove subarchitecture support code\n\n    Remove remaining bits of the subarchitecture code. Now that all the\n    special platforms are runtime probed and runtime handled, we can remove\n    these facilities.\n\n    Signed-off-by: Ingo Molnar <mingo@elte.hu>\n\n arch/x86/Makefile                                    |  5 ----\n arch/x86/kernel/Makefile                             |  2 +-\n arch/x86/{mach-generic/probe.c => kernel/probe_32.c} | 92 ++++++++++++++++++\n arch/x86/mach-generic/Makefile                       |  7 -----\n 4 files changed, 93 insertions(+), 13 deletions(-)\n\nI tried the latest git release git-2.26.2.tar.gz from kernel.org, and it also has the\nsame issue.\n\nThe web interface has the same issue too:\nhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7b38725318f4517af6168ccbff99060d67aba1c8\n\nIt looks there is a bug introduced in some git verson newer than 1.8.3.1?\n\nThanks,\n-- Dexuan\n\n"},{"id":"398834","messageId":"20200529055045.GA1294228@coredump.intra.peff.net","threadId":"53578","inReplyTo":"HK0P153MB0113E08900C5C8B8311A4B24BF8F0@HK0P153MB0113.APCP153.PROD.OUTLOOK.COM","subject":"Re: [BUG] New git unable to show this commit completely?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2020-05-29T05:50:45Z","receivedAt":"2020-05-29T05:50:48Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, May 29, 2020 at 05:43:29AM +0000, Dexuan Cui wrote:\n\n> However, in Ubuntu 20.04, the git doesn't show the deleted file\n> arch/x86/mach-generic/probe.c at all:\n\nIt does; it's part of this rename:\n\n>  arch/x86/{mach-generic/probe.c => kernel/probe_32.c} | 92 ++++++++++++++++++\n\nRename detection was turned on by default in Git v2.0. You can get the\noriginal output with:\n\n  git show --stat --no-renames 7b38725318f4517af6168ccbff99060d67aba1c8\n\nOr if you really don't like rename detection, you can disable it in the\nconfig, like:\n\n  git config --global diff.renames false\n\n-Peff\n"},{"id":"398836","messageId":"HK0P153MB0113974318F69042C36EB62FBF8F0@HK0P153MB0113.APCP153.PROD.OUTLOOK.COM","threadId":"53578","inReplyTo":"20200529055045.GA1294228@coredump.intra.peff.net","subject":"RE: [BUG] New git unable to show this commit completely?","fromName":"Dexuan Cui","fromEmail":"decui@microsoft.com","sentAt":"2020-05-29T06:16:23Z","receivedAt":"2020-05-29T06:16:29Z","isPatch":false,"sender":{"key":"decui@microsoft.com","avatar":null},"body":"> From: Jeff King <peff@peff.net>\n> Sent: Thursday, May 28, 2020 10:51 PM\n> Cc: git@vger.kernel.org\n> Subject: Re: [BUG] New git unable to show this commit completely?\n> \n> On Fri, May 29, 2020 at 05:43:29AM +0000, Dexuan Cui wrote:\n> \n> > However, in Ubuntu 20.04, the git doesn't show the deleted file\n> > arch/x86/mach-generic/probe.c at all:\n> \n> It does; it's part of this rename:\n> \n> >  arch/x86/{mach-generic/probe.c => kernel/probe_32.c} | 92\n> ++++++++++++++++++\n> \n> Rename detection was turned on by default in Git v2.0. \n\nAh, got it! Thanks for the quick reply! \nI should have checked it more carefully. :-)\n\nThanks,\n-- Dexuan\n"}]}