[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to edit "Author" in a patch ready to push
From: |
David Kastrup |
Subject: |
Re: How to edit "Author" in a patch ready to push |
Date: |
Sat, 13 Jun 2015 02:31:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Benkő Pál <address@hidden> writes:
> 2015-06-12 22:20 GMT+02:00 Thomas Morley <address@hidden>:
>> Though, the current patch for 4428 shows:
>> Author: harm <address@hidden>
>>
>> Is there any way to change it to:
>> Author: Thomas Morley <address@hidden>
>> ?
>
> my guess is
> git commit --amend --reset-author --no-edit
Instead of --reset-author, --author=Morley should have worked (reuses
the last author matching "Morley" or something like that). Or, if the
author has no previous commits or only commits with a bad address or
name,
--author="Thomas Morley <address@hidden>"
--reset-author may be nice for your case, but more frequently is the
situation where you are committing a patch for somebody else.
--
David Kastrup