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

Re: [PATCH] commit: quote the user name in the example

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Feb 24, 2010, 07:49 UTC
Message-ID
<4B84DA03.1040809@viscovery.net>
In-Reply-To
<1266980049-5835-1-git-send-email-kraai@ftbfs.org>
Matt Kraai schrieb:
Show 11 quoted lines
> If the user runs
> 
>  git config --global user.name Your Name
> 
> as suggested, user.name will be set to "Your".  With this patch, the
> suggested command will be
> 
>  git config --global user.name 'Your Name'
> 
> which will set user.name to "Your Name" and hopefully help users avoid
> the former mistake.
Actually, I would prefer that the suggested command is
  git config --global user.name "Your Name"

i.e., with double-quotes, because then the suggestion is also correct for Windows users who run git from CMD: in this environment, single-quotes do not quote, but double-quotes do.

-- Hannes
Previous: Junio C HamanoNext: Matt Kraai
Message 3 of 5 in “commit: quote the user name in the example”
  1. commit: quote the user name in the exampleMatt Kraai, Feb 24, 2010
  2. Junio C HamanoFeb 24, 2010
  3. Johannes SixtFeb 24, 2010
  4. commit: quote the user name in the exampleMatt Kraai, Feb 24, 2010
  5. Matt KraaiFeb 24, 2010

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.