Re: git log --name-only improvement: show old file name in rename
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 12, 2020, 17:03 UTC
- Message-ID
- <xmqqh7vg2p4p.fsf@gitster.c.googlers.com>
- In-Reply-To
- <25ca66fb-82bc-7278-90e9-5e1999593068@iee.email>
Philip Oakley <philipoakley@iee.email> writes:
Show 14 quoted lines
> @Ed > On 12/06/2020 00:16, Junio C Hamano wrote: >> Ed Avis <ed.avis@qmaw.com> writes: >> >>> The git-log manual page says >>> >>> --name-only >>> Show only names of changed files. >>> >>> But when a file has been renamed, only the new name is printed, not the >>> old. I think it would be more useful and more correct to print both >>> names. > Was this a concern that the manual did not clarify which name (old or > new) was being reported?
Good point.
I am not Ed so I cannot give an answer to that question, but if we do not document what name is listed in the output, we definitely should.
Thanks.