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

Re: [PATCH] commit: suggest --amend --reset-author to fix commiter identity

From
Jeff King <peff@peff.net>
Date
Jan 11, 2011, 05:34 UTC
Message-ID
<20110111053451.GA10094@sigill.intra.peff.net>
In-Reply-To
<vpq1v4nirzz.fsf@bauges.imag.fr>
On Sat, Jan 08, 2011 at 11:56:00AM +0100, Matthieu Moy wrote:
Show 13 quoted lines
> > Wouldn't it work better to just get rid of the longer form and say
> > something like:
> >
> >     ... here is how to tell your name to git (existing message) ...
> >
> >     After doing the above, run
> >
> >     	git commit --amend --reset-author
> >
> >     to fix the identity used for this commit.
> 
> I'm fine with that proposal too. I'll resend with that if no one
> objects. Probalby rewording it to

Hmm. When I originally wrote that message, I specifically avoided using --reset-author because I figured people would want to most immediately fix the broken commit, and then maybe would not be too lazy to fix things for the future. But that was just a hunch, and I don't feel strongly about it.

I was also afraid of people blindly running the fixup command without doing the configuration specified in the commands above. However, I think as long as the text makes it clear that one depends on the other, it should be OK. So something like:

> After doing this, you can fix the identity used for this commit with:
> 
>   git commit --amend --reset-author
looks fine to me.
-Peff
Previous: Matthieu MoyNext: Matthieu Moy
Message 7 of 10 in “commit: suggest --amend --reset-author to fix commiter identity”
  1. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 7, 2011
  2. Jonathan NiederJan 7, 2011
  3. Matthieu MoyJan 7, 2011
  4. Jonathan NiederJan 7, 2011
  5. Junio C HamanoJan 7, 2011
  6. Matthieu MoyJan 8, 2011
  7. Jeff KingJan 11, 2011
  8. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 11, 2011
  9. commit: suggest --amend --reset-author to fix commiter identityMatthieu Moy, Jan 12, 2011
  10. Jeff KingJan 12, 2011

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.