summaryrefslogtreecommitdiff
path: root/builtin/tag.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-24 23:28:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-25 00:16:41 (GMT)
commitf9bc573fdaeaf8621008f3f49aaaa64869791691 (patch)
treebecd0a65e5488ae94fdf1781c70b5ab68eb85e0a /builtin/tag.c
parentc73f384f92dcb0d7111533ed21f6c2dc9fcc323b (diff)
downloadgit-f9bc573fdaeaf8621008f3f49aaaa64869791691.zip
git-f9bc573fdaeaf8621008f3f49aaaa64869791691.tar.gz
git-f9bc573fdaeaf8621008f3f49aaaa64869791691.tar.bz2
ident: rename IDENT_ERROR_ON_NO_NAME to IDENT_STRICT
Callers who ask for ERROR_ON_NO_NAME are not so much concerned that the name will be blank (because, after all, we will fall back to using the username), but rather it is a check to make sure that low-quality identities do not end up in things like commit messages or emails (whereas it is OK for them to end up in things like reflogs). When future commits add more quality checks on the identity, each of these callers would want to use those checks, too. Rather than modify each of them later to add a new flag, let's refactor the flag. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/tag.c')
-rw-r--r--builtin/tag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/tag.c b/builtin/tag.c
index 4fb6bd7..7b1be85 100644
--- a/builtin/tag.c
+++ b/builtin/tag.c
@@ -332,7 +332,7 @@ static void create_tag(const unsigned char *object, const char *tag,
sha1_to_hex(object),
typename(type),
tag,
- git_committer_info(IDENT_ERROR_ON_NO_NAME));
+ git_committer_info(IDENT_STRICT));
if (header_len > sizeof(header_buf) - 1)
die(_("tag header too big."));