git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Michael S. TsirkinNext: Jakub Narebski
Message 6 of 7 in “git-am and workflow question”
  1. Kumar GalaFeb 8, 2007
  2. Junio C HamanoFeb 8, 2007
  3. Kumar GalaFeb 8, 2007
  4. Junio C HamanoFeb 8, 2007
  5. Michael S. TsirkinFeb 10, 2007
  6. Junio C HamanoFeb 11, 2007
  7. Jakub NarebskiFeb 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.