git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] commit: suggest --amend --reset-author to fix commiter identity
@ 2011-01-07 14:14 Matthieu Moy
  2011-01-07 17:13 ` Jonathan Nieder
  2011-01-07 19:51 ` Junio C Hamano
  0 siblings, 2 replies; 10+ messages in thread
From: Matthieu Moy @ 2011-01-07 14:14 UTC (permalink / raw)
  To: git, gitster; +Cc: Matthieu Moy

The advantage of this command is that it is cut-and-paste ready, while
using --author='...' requires the user to type his name and email a
second time.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 builtin/commit.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/builtin/commit.c b/builtin/commit.c
index 22ba54f..440223c 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -47,7 +47,11 @@ static const char implicit_ident_advice[] =
 "\n"
 "If the identity used for this commit is wrong, you can fix it with:\n"
 "\n"
-"    git commit --amend --author='Your Name <you@example.com>'\n";
+"    git commit --amend --author='Your Name <you@example.com>'\n"
+"\n"
+"or\n"
+"\n"
+"    git commit --amend --reset-author\n";
 
 static const char empty_amend_advice[] =
 "You asked to amend the most recent commit, but doing so would make\n"
-- 
1.7.4.rc0.1.g6944b.dirty

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-12 18:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-01-11 14:07     ` Matthieu Moy
2011-01-12 18:29       ` [PATCH v2] " Matthieu Moy
2011-01-12 18:39         ` Jeff King

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).