diff options
author | Jeff King <peff@peff.net> | 2012-05-24 19:28:40 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-24 17:16:41 -0700 |
commit | f9bc573fdaeaf8621008f3f49aaaa64869791691 (patch) | |
tree | becd0a65e5488ae94fdf1781c70b5ab68eb85e0a /gpg-interface.c | |
parent | format-patch: use GIT_COMMITTER_EMAIL in message ids (diff) | |
download | tgif-f9bc573fdaeaf8621008f3f49aaaa64869791691.tar.xz |
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 'gpg-interface.c')
-rw-r--r-- | gpg-interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpg-interface.c b/gpg-interface.c index 09ab64aa24..0863c61800 100644 --- a/gpg-interface.c +++ b/gpg-interface.c @@ -30,7 +30,7 @@ const char *get_signing_key(void) { if (configured_signing_key) return configured_signing_key; - return git_committer_info(IDENT_ERROR_ON_NO_NAME|IDENT_NO_DATE); + return git_committer_info(IDENT_STRICT|IDENT_NO_DATE); } /* |