From: Junio C Hamano <gitster@pobox.com>
To: Ed Avis <ed.avis@qmaw.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git log --name-only improvement: show old file name in rename
Date: Thu, 11 Jun 2020 16:16:34 -0700 [thread overview]
Message-ID: <xmqqsgf1i46l.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <BL0PR11MB3460BEB60550854661B5178B9D800@BL0PR11MB3460.namprd11.prod.outlook.com> (Ed Avis's message of "Thu, 11 Jun 2020 11:19:14 +0000")
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.
It is just you who thinks it would be more useful.
Scripts written by people over the last 10 years that expect to see
new name would certainly hate to see two names start appearing
there.
Perhaps you can use --summary at the same time?
next prev parent reply other threads:[~2020-06-11 23:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-11 11:19 git log --name-only improvement: show old file name in rename Ed Avis
2020-06-11 23:16 ` Junio C Hamano [this message]
2020-06-12 14:18 ` Philip Oakley
2020-06-12 17:03 ` Junio C Hamano
2020-06-15 7:36 ` Ed Avis
2024-05-16 23:13 ` Nathan Faulkner
2024-05-17 16:00 ` Re*: " Junio C Hamano
2024-05-18 0:24 ` Nathan Faulkner
2024-05-18 2:05 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqsgf1i46l.fsf@gitster.c.googlers.com \
--to=gitster@pobox.com \
--cc=ed.avis@qmaw.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).