git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix settings in default_user_config template

From
Jeff King <peff@peff.net>
Date
Apr 17, 2015, 14:55 UTC
Message-ID
<20150417145516.GB2421@peff.net>
In-Reply-To
<1429282210-38538-1-git-send-email-oherrala@gmail.com>
On Fri, Apr 17, 2015 at 05:50:10PM +0300, Ossi Herrala wrote:
> 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? :)

Show 14 quoted lines
> diff --git a/builtin/config.c b/builtin/config.c
> index d32c532..bfd3016 100644
> --- a/builtin/config.c
> +++ b/builtin/config.c
> @@ -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
Previous: Ossi HerralaNext: Ossi Herrala
Message 2 of 5 in “Fix settings in default_user_config template”
  1. Fix settings in default_user_config templateOssi Herrala, Apr 17, 2015
  2. Jeff KingApr 17, 2015
  3. Fix settings in default_user_config templateOssi Herrala, Apr 17, 2015
  4. Fix settings in default_user_config templateOssi Herrala, Apr 17, 2015
  5. Junio C HamanoApr 17, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.