From: Matthieu Moy Date: Wed, 12 Jan 2011 18:29:14 +0000 (+0100) Subject: commit: suggest --amend --reset-author to fix commiter identity X-Git-Tag: v1.7.4-rc2~11^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3f14246;p=git.git commit: suggest --amend --reset-author to fix commiter identity Since the message advises to fix the configuration first, the advantage of using this command is that it is cut-and-paste ready, while using --author='...' requires the user to type his name and email again. Signed-off-by: Matthieu Moy Acked-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/builtin/commit.c b/builtin/commit.c index 3bcb4b7ec..6e2f12acc 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -45,9 +45,9 @@ static const char implicit_ident_advice[] = " git config --global user.name \"Your Name\"\n" " git config --global user.email you@example.com\n" "\n" -"If the identity used for this commit is wrong, you can fix it with:\n" +"After doing this, you may fix the identity used for this commit with:\n" "\n" -" git commit --amend --author='Your Name '\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"