Fix settings in default_user_config template
PATCH 1/1 Fix settings in default_user_config template
The name (not user) and email setting should be in config section "user" and not in "core" as documented in Documentation/config.txt.
--- builtin/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/config.c +2 -2
@@ -455,9 +455,9 @@ static char *default_user_config(void)struct strbuf buf =STRBUF_INIT ;strbuf_addf (&buf,_ ("# This is Git's per-user configuration file.\n" -"[core]\n" +"[user]\n" "# Please adapt and uncomment the following lines:\n" -"# user = %s\n" +"# name = %s\n" "# email = %s\n" ),ident_default_name (),ident_default_email ());
Signature · 1 line
2.3.5
Quoted 2 lines · Ossi Herrala
The name (not user) and email setting should be in config section "user" and not in "core" as documented in
Documentation/config.txt.
<facepalm> Well, those probably weren't helping any new users, then, were they? :)
Quoted 5 lines
builtin/config.c +0
-0
builtin/config.c static char *default_user_config(void) · line 461
Quoted 9 lines
builtin/config.c +2
-2@@ -455,9 +455,9 @@ static char *default_user_config(void)struct strbuf buf =STRBUF_INIT ; strbuf_addf(&buf, _("# This is Git's per-user configuration file.\n" - "[core]\n" + "[user]\n" "# Please adapt and uncomment the following lines:\n" - "# user = %s\n" + "# name = %s\n" "# email = %s\n"),
Looks obviously correct. Thanks for noticing.
-Peff
PATCH 1/1 Fix settings in default_user_config template
The name (not user) and email setting should be in config section "user" and not in "core" as documented in Documentation/config.txt.
PATCH 1/1 Fix settings in default_user_config template
The name (not user) and email setting should be in config section "user" and not in "core" as documented in Documentation/config.txt.
--- builtin/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/config.c +2 -2
@@ -455,9 +455,9 @@ static char *default_user_config(void)struct strbuf buf =STRBUF_INIT ;strbuf_addf (&buf,_ ("# This is Git's per-user configuration file.\n" -"[core]\n" +"[user]\n" "# Please adapt and uncomment the following lines:\n" -"# user = %s\n" +"# name = %s\n" "# email = %s\n" ),ident_default_name (),ident_default_email ());
Signature · 1 line
2.3.5
Quoted 5 lines · Ossi Herrala
The name (not user) and email setting should be in config section "user" and not in "core" as documented in
Documentation/config.txt.Signed-off-by Ossi Herrala <[email protected]>Reviewed-by Jeff King <[email protected]>
Thanks ;-)