Re: Why is AuthorDate displayed on git-blame?
- From
Raymond E. Pasco <ray@ameretat.dev>
- Date
- Aug 6, 2020, 06:57 UTC
- Message-ID
- <C4PPV24G8ZNK.3IYI2MQ3A262Y@ziyou>
- In-Reply-To
- <xmqq5z9yq611.fsf@gitster.c.googlers.com>
On Tue Aug 4, 2020 at 8:40 PM EDT, Junio C Hamano wrote:
> IOW, what you would want is a "git blame --first-parent".
This exists (because blame takes rev-list options) and works as expected (because blame.c handles this case), but is not documented. We could include rev-list-options.txt, but this wouldn't be accurate because blame does some of its own commit walking. Perhaps the following adaptation:
--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.