aboutsummaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-11 17:57:36 -0600
committerJunio C Hamano <gitster@pobox.com>2009-11-13 12:16:30 -0800
commitc27b39252ff713db414b8dbbfb263d0468031fab (patch)
tree1896a16e4411c4ee73848c4adc38e2fbbf369acc /ident.c
parentd33738d7d3ed42a956c74d0125eb2b3abda451b7 (diff)
downloadgit-c27b39252ff713db414b8dbbfb263d0468031fab.tar.gz
git-c27b39252ff713db414b8dbbfb263d0468031fab.tar.xz
Suppress warnings from "git var -l"
For scripts using "git var -l" to read all logical variables at once, not all per-variable warnings will be relevant. So suppress them. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ident.c b/ident.c
index 99f1c85ea..26409b2a1 100644
--- a/ident.c
+++ b/ident.c
@@ -205,7 +205,7 @@ const char *fmt_ident(const char *name, const char *email,
if ((warn_on_no_name || error_on_no_name) &&
name == git_default_name && env_hint) {
fprintf(stderr, env_hint, au_env, co_env);
- env_hint = NULL; /* warn only once, for "git var -l" */
+ env_hint = NULL; /* warn only once */
}
if (error_on_no_name)
die("empty ident %s <%s> not allowed", name, email);