summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2015-01-26 15:48:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-01-27 03:57:12 (GMT)
commit1044b1f6a1a56ae723fd19cddd769380dc775f48 (patch)
treeb1589aae5e827f605500710dd110582ac5ab9409 /builtin/commit.c
parent282616c72d1d08a77ca4fe1186cb708c38408d87 (diff)
downloadgit-1044b1f6a1a56ae723fd19cddd769380dc775f48.zip
git-1044b1f6a1a56ae723fd19cddd769380dc775f48.tar.gz
git-1044b1f6a1a56ae723fd19cddd769380dc775f48.tar.bz2
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 <git@drmicha.warpmail.net> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
-rw-r--r--builtin/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c
index 39cf897..304c0bf 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 <email>' and matches no existing author"), name);
}