From: Noam Soloveichik <firstname.lastname@example.org>
To: "Raymond E. Pasco" <email@example.com>,
Junio C Hamano <firstname.lastname@example.org>
Subject: Re: Why is AuthorDate displayed on git-blame?
Date: Thu, 6 Aug 2020 18:19:23 +0300 [thread overview]
Message-ID: <email@example.com> (raw)
On 06/08/2020 9:57, Raymond E. Pasco wrote:
> On Tue Aug 4, 2020 at 8:40 PM EDT, Junio C Hamano wrote: > --first-parent:: Follow only the first parent commit upon seeing a > merge commit. This option can be used to determine when a line was > introduced to a particular integration branch, rather than when it > was introduced to the history overall.
I want to make sure I understand your proposal correctly -
--first-parent would still show AuthorDate, but of the
*merge-commit*, and not the commit that introduced the line of code
to the history overall.
If so, it's going to get the job done for commits which are applied
by a merge-commit. Although I wonder what --first-parent would
display for commits which are applied *not* by a merge.
Consider the linux kernel, where some of its commits are merge
commits from pull requests, and some are applied patches: with
different AuthorDate and CommitDate. For those commits, AuthorDate
represents the date the patch was originally sent to review, not when
it was introduced to the integration branch, which is represented by
the CommitDate, which leads to inconsistencies.
next prev parent reply other threads:[~2020-08-06 17:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-05 0:18 Why is AuthorDate displayed on git-blame? נעם סולוביצ'יק
2020-08-05 0:40 ` Junio C Hamano
2020-08-06 6:57 ` Raymond E. Pasco
2020-08-06 15:19 ` Noam Soloveichik [this message]
2020-08-06 18:13 ` Raymond E. Pasco
2020-08-06 18:17 ` Junio C Hamano
2020-08-06 18:52 ` [PATCH] blame-options.txt: document --first-parent option Raymond E. Pasco
2020-08-08 0:35 ` Why is AuthorDate displayed on git-blame? Jeff King
2020-08-05 1:59 ` brian m. carlson
2020-08-05 16:08 ` Junio C Hamano
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:
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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.
Code repositories for project(s) associated with this public inbox
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 read-only IMAP folder(s) and NNTP newsgroup(s).