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