summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d6f8fd0)
raw | patch | inline | side by side (parent: d6f8fd0)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Jan 2010 13:53:56 +0000 (05:53 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 8 Jan 2010 13:53:56 +0000 (05:53 -0800) |
d5cc2de (ident.c: Trim hint printed when gecos is empty., 2006-11-28)
reworded the message used as printf() format and dropped "%s" from it;
these two variables that hold the names of GIT_{AUTHOR,COMMITTER}_NAME
environment variables haven't been used since then.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reworded the message used as printf() format and dropped "%s" from it;
these two variables that hold the names of GIT_{AUTHOR,COMMITTER}_NAME
environment variables haven't been used since then.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ident.c | patch | blob | history |
index 26409b2a1b191765706265c2aa6d2ae163ba5bab..e6c1798d9814d3a4d9d58a5097523f4b0dd16258 100644 (file)
--- a/ident.c
+++ b/ident.c
return offset;
}
-static const char au_env[] = "GIT_AUTHOR_NAME";
-static const char co_env[] = "GIT_COMMITTER_NAME";
static const char *env_hint =
"\n"
"*** Please tell me who you are.\n"
if ((warn_on_no_name || error_on_no_name) &&
name == git_default_name && env_hint) {
- fprintf(stderr, env_hint, au_env, co_env);
+ fprintf(stderr, env_hint);
env_hint = NULL; /* warn only once */
}
if (error_on_no_name)