From 1044b1f6a1a56ae723fd19cddd769380dc775f48 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Mon, 26 Jan 2015 16:48:33 +0100 Subject: [PATCH] commit: reword --author error message If an --author argument is specified but does not contain a '>' then git tries to find the argument within the existing authors; and gives the error message "No existing author found with '%s'" if there is no match. This is confusing for users who try to specify a valid complete author name. Rename the error message to make it clearer that the failure has two reasons in this case. (This codepath is touched only when we know already that the argument cannot be a completely wellformed author ident.) Signed-off-by: Michael J Gruber Helped-by: Jeff King Signed-off-by: Junio C Hamano --- builtin/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/commit.c b/builtin/commit.c index 39cf8976e3..304c0bf45c 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -999,7 +999,7 @@ static const char *find_author_by_nickname(const char *name) clear_mailmap(&mailmap); return strbuf_detach(&buf, NULL); } - die(_("No existing author found with '%s'"), name); + die(_("--author '%s' is not 'Name ' and matches no existing author"), name); } -- 2.11.4.GIT