Re: git-am and workflow question
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 11, 2007, 06:45 UTC
- Message-ID
- <7vps8hdwf7.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20070210221852.GC32216@mellanox.co.il>
"Michael S. Tsirkin" <mst@mellanox.co.il> writes:
Show 9 quoted lines
>> My second pass is actually applying the patch by piping each >> e-mail message from my e-mail client to "git am -3 -s", and if I >> do not like something in the patch, I make corrections and then >> run "git commit --amend". > > git-commit --amend seems to rewrite the commit author which is > annoying if you only want to modify the log message a little. As a > work-around I copy the author info from the log and passing --author > explicitly, but is there an easier way?
I am puzzled about this comment. You should not have to do anything funky at all.
"commit --amend" changes the committer information (because you are now committing something different and at a different time from what was recorded in the original commit object), but does not touch the author information at all.
We _might_ have had a bug in an ancient version but I even doubt it.