git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Handling of 'git-config foo=bar'
@ 2007-02-04 11:33 Yann Dirson
  2007-02-04 19:59 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Yann Dirson @ 2007-02-04 11:33 UTC (permalink / raw)
  To: GIT list

Currently, running "git-config foo=bar", ie. presumably an erroneous
attempt at setting "foo", indeed queries "foo=bar", so outputs nothing
and reports success.

Do we want to allow "=" signs in config var names ?  It would seem
reasonable to refuse them, and report an error to the innocent user
(OK, i'm not that innocent, but still ;)

Or does that sound a bad idea to anyone ?

Best regards,
-- 
Yann.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Handling of 'git-config foo=bar'
  2007-02-04 11:33 Handling of 'git-config foo=bar' Yann Dirson
@ 2007-02-04 19:59 ` Junio C Hamano
  2007-02-04 20:20   ` Jakub Narebski
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-02-04 19:59 UTC (permalink / raw)
  To: Yann Dirson; +Cc: git, Johannes Schindelin

Yann Dirson <ydirson@altern.org> writes:

> Currently, running "git-config foo=bar", ie. presumably an erroneous
> attempt at setting "foo", indeed queries "foo=bar", so outputs nothing
> and reports success.
>
> Do we want to allow "=" signs in config var names ?  It would seem
> reasonable to refuse them, and report an error to the innocent user
> (OK, i'm not that innocent, but still ;)
>
> Or does that sound a bad idea to anyone ?

Something like:

   git config remote.origin.fetch=refs/heads/master:refs/heads/origin
   git config remote.origin.fetch+=refs/heads/next:refs/heads/next
   git config remote.origin.fetch+=+refs/heads/pu:refs/heads/pu
   git config remote.origin.fetch+=refs/heads/maint:refs/heads/maint

sounds sensible.

However, my feeling is "git repo-config" is primarily for use by
scripts, and we are better off educating users not to be afraid
of viewing and editing .git/config file themselves.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Handling of 'git-config foo=bar'
  2007-02-04 19:59 ` Junio C Hamano
@ 2007-02-04 20:20   ` Jakub Narebski
  0 siblings, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2007-02-04 20:20 UTC (permalink / raw)
  To: git

Junio C Hamano wrote:

> Yann Dirson <ydirson@altern.org> writes:
> 
>> Currently, running "git-config foo=bar", ie. presumably an erroneous
>> attempt at setting "foo", indeed queries "foo=bar", so outputs nothing
>> and reports success.
>>
>> Do we want to allow "=" signs in config var names ?  It would seem
>> reasonable to refuse them, and report an error to the innocent user
>> (OK, i'm not that innocent, but still ;)
>>
>> Or does that sound a bad idea to anyone ?
> 
> Something like:
> 
>    git config remote.origin.fetch=refs/heads/master:refs/heads/origin
>    git config remote.origin.fetch+=refs/heads/next:refs/heads/next
>    git config remote.origin.fetch+=+refs/heads/pu:refs/heads/pu
>    git config remote.origin.fetch+=refs/heads/maint:refs/heads/maint
> 
> sounds sensible.
> 
> However, my feeling is "git repo-config" is primarily for use by
> scripts, and we are better off educating users not to be afraid
> of viewing and editing .git/config file themselves.

I think the question was not if we want new syntax for setting variables,
but if we want to disallow '=' in variable (key) names. They are pretty
restricted, and I cannot think offhand of variable name we would want that
would need to have '=' in it...

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-04 20:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-04 11:33 Handling of 'git-config foo=bar' Yann Dirson
2007-02-04 19:59 ` Junio C Hamano
2007-02-04 20:20   ` Jakub Narebski

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).