Skip to contentSkip to conversation

Fix settings in default_user_config template

PATCH In review Ossi Herrala 3 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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
index d32c532..bfd3016 100644
@@ -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
#1 lore raw
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
index d32c532..bfd3016 100644

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

#3 lore raw

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
index d32c532..bfd3016 100644
@@ -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