* [PATCH] commit: quote the user name in the example
@ 2010-02-24 2:54 Matt Kraai
2010-02-24 3:00 ` Junio C Hamano
2010-02-24 7:49 ` Johannes Sixt
0 siblings, 2 replies; 5+ messages in thread
From: Matt Kraai @ 2010-02-24 2:54 UTC (permalink / raw)
To: gitster, git; +Cc: Matt Kraai
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.
Signed-off-by: Matt Kraai <kraai@ftbfs.org>
---
builtin-commit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index 55676fd..1ec89d1 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -41,7 +41,7 @@ static const char implicit_ident_advice[] =
"on your username and hostname. Please check that they are accurate.\n"
"You can suppress this message by setting them explicitly:\n"
"\n"
-" git config --global user.name Your Name\n"
+" git config --global user.name 'Your Name'\n"
" git config --global user.email you@example.com\n"
"\n"
"If the identity used for this commit is wrong, you can fix it with:\n"
--
1.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] commit: quote the user name in the example
2010-02-24 2:54 [PATCH] commit: quote the user name in the example Matt Kraai
@ 2010-02-24 3:00 ` Junio C Hamano
2010-02-24 7:49 ` Johannes Sixt
1 sibling, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2010-02-24 3:00 UTC (permalink / raw)
To: Matt Kraai; +Cc: git
Thanks; will queue for 'maint'.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] commit: quote the user name in the example
2010-02-24 2:54 [PATCH] commit: quote the user name in the example Matt Kraai
2010-02-24 3:00 ` Junio C Hamano
@ 2010-02-24 7:49 ` Johannes Sixt
2010-02-24 14:18 ` Matt Kraai
2010-02-24 14:19 ` Matt Kraai
1 sibling, 2 replies; 5+ messages in thread
From: Johannes Sixt @ 2010-02-24 7:49 UTC (permalink / raw)
To: Matt Kraai; +Cc: gitster, git
Matt Kraai schrieb:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] commit: quote the user name in the example
2010-02-24 7:49 ` Johannes Sixt
@ 2010-02-24 14:18 ` Matt Kraai
2010-02-24 14:19 ` Matt Kraai
1 sibling, 0 replies; 5+ messages in thread
From: Matt Kraai @ 2010-02-24 14:18 UTC (permalink / raw)
To: gitster, git, Johannes Sixt; +Cc: Matt Kraai
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.
Signed-off-by: Matt Kraai <kraai@ftbfs.org>
---
builtin-commit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-commit.c b/builtin-commit.c
index 55676fd..46513bf 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -41,7 +41,7 @@ static const char implicit_ident_advice[] =
"on your username and hostname. Please check that they are accurate.\n"
"You can suppress this message by setting them explicitly:\n"
"\n"
-" git config --global user.name Your Name\n"
+" git config --global user.name \"Your Name\"\n"
" git config --global user.email you@example.com\n"
"\n"
"If the identity used for this commit is wrong, you can fix it with:\n"
--
1.7.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] commit: quote the user name in the example
2010-02-24 7:49 ` Johannes Sixt
2010-02-24 14:18 ` Matt Kraai
@ 2010-02-24 14:19 ` Matt Kraai
1 sibling, 0 replies; 5+ messages in thread
From: Matt Kraai @ 2010-02-24 14:19 UTC (permalink / raw)
To: Johannes Sixt; +Cc: gitster, git
On Wed, Feb 24, 2010 at 08:49:23AM +0100, Johannes Sixt wrote:
> 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.
I've justed submitted a modified version of the patch that uses
double-quotes. Thanks for the suggestion.
--
Matt http://ftbfs.org/kraai
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-24 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 2:54 [PATCH] commit: quote the user name in the example Matt Kraai
2010-02-24 3:00 ` Junio C Hamano
2010-02-24 7:49 ` Johannes Sixt
2010-02-24 14:18 ` Matt Kraai
2010-02-24 14:19 ` Matt Kraai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).