From: Jeff King <peff@peff.net>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH] commit: suggest --amend --reset-author to fix commiter identity
Date: Tue, 11 Jan 2011 00:34:51 -0500 [thread overview]
Message-ID: <20110111053451.GA10094@sigill.intra.peff.net> (raw)
In-Reply-To: <vpq1v4nirzz.fsf@bauges.imag.fr>
On Sat, Jan 08, 2011 at 11:56:00AM +0100, Matthieu Moy wrote:
> > 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
next prev parent reply other threads:[~2011-01-11 5:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 14:14 [PATCH] commit: suggest --amend --reset-author to fix commiter identity Matthieu Moy
2011-01-07 17:13 ` Jonathan Nieder
2011-01-07 17:16 ` Matthieu Moy
2011-01-07 17:34 ` Jonathan Nieder
2011-01-07 19:51 ` Junio C Hamano
2011-01-08 10:56 ` Matthieu Moy
2011-01-11 5:34 ` Jeff King [this message]
2011-01-11 14:07 ` Matthieu Moy
2011-01-12 18:29 ` [PATCH v2] " Matthieu Moy
2011-01-12 18:39 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110111053451.GA10094@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).