# Should 'git config' support key with dot such as 'a.b'

7 messages from 2008-03-14 to 2008-03-18. Participants: Ping Yin, Johannes Schindelin, Xavier Maillard, Frank Lichtenheld, Junio C Hamano.
Thread: https://gitlist.dev/t/12685

## Ping Yin, 2008-03-14 08:24

Subject: Should 'git config' support key with dot such as 'a.b'
Message-ID: <46dff0320803140124t1469defsf7002f720cf2002e@mail.gmail.com>
URL: https://gitlist.dev/e/46dff0320803140124t1469defsf7002f720cf2002e%40mail.gmail.com

```
I find it is so annoying to write submodule definition as follows
(yeah, only url, without path)

------------------------------
[submodule 'crawler']
    url = url1
[submodule 'search']
    url = url2
------------------------------

I think the following form is more simple
---------------------------------
[submodule]
     crawler.url = url1
     search.url = url2
---------------------------------

So, could we support such simpler form?


-- 
Ping Yin

```

## Johannes Schindelin, 2008-03-14 10:39

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <alpine.LSU.1.00.0803141138340.24600@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0803141138340.24600%40racer.site
In-Reply-To: <46dff0320803140124t1469defsf7002f720cf2002e@mail.gmail.com>

```
Hi,

On Fri, 14 Mar 2008, Ping Yin wrote:

> I find it is so annoying to write submodule definition as follows
> (yeah, only url, without path)
> 
> ------------------------------
> [submodule 'crawler']
>     url = url1
> [submodule 'search']
>     url = url2
> ------------------------------
> 
> I think the following form is more simple
> ---------------------------------
> [submodule]
>      crawler.url = url1
>      search.url = url2
> ---------------------------------
> 
> So, could we support such simpler form?

I don't like it at all.  Historically, we had much stricter rules on the 
variable names than the second part of the section names.

Also, your suggestion would make things even more confusing than beginners 
already complain Git is.

Ciao,
Dscho

```

## Xavier Maillard, 2008-03-17 01:00

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <200803170100.m2H103CF020765@localhost.localdomain>
URL: https://gitlist.dev/e/200803170100.m2H103CF020765%40localhost.localdomain
In-Reply-To: <46dff0320803140124t1469defsf7002f720cf2002e@mail.gmail.com>

```


   I think the following form is more simple
   ---------------------------------
   [submodule]
	crawler.url = url1
	search.url = url2
   ---------------------------------

   So, could we support such simpler form?

Dunno if my vote will count but I really don't like your
proposition. I find clearer with the current notation. What's
more it forces people to be more rigorous when touching their
configuration file.

git config is really simple to use and there should not be
difficult for anybody (even new git users) to set up git using
this helper tool. We should not recommend beginners to manually
edit their .git/config file when git-config could be used.

	Xavier
-- 
http://www.gnu.org
http://www.april.org
http://www.lolica.org

```

## Frank Lichtenheld, 2008-03-17 08:48

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <20080317084815.GC10103@mail-vs.djpig.de>
URL: https://gitlist.dev/e/20080317084815.GC10103%40mail-vs.djpig.de
In-Reply-To: <200803170100.m2H103CF020765@localhost.localdomain>

```
On Mon, Mar 17, 2008 at 02:00:03AM +0100, Xavier Maillard wrote:
>    I think the following form is more simple
>    ---------------------------------
>    [submodule]
> 	crawler.url = url1
> 	search.url = url2
>    ---------------------------------
> 
>    So, could we support such simpler form?
> 
> Dunno if my vote will count but I really don't like your
> proposition. I find clearer with the current notation. What's
> more it forces people to be more rigorous when touching their
> configuration file.
> 
> git config is really simple to use and there should not be
> difficult for anybody (even new git users) to set up git using
> this helper tool. We should not recommend beginners to manually
> edit their .git/config file when git-config could be used.

git config hasn't exactly a excellent track-record for dealing with all
the possibilities the config syntax allows. Adding yet another
possibility will not make it any more reliable.

Also your argument that people should git-config anyway instead of
editing by hand kinda contradicts the need for a new format, since
it would change anything for the git-config interface, only for people
editing the file by hand...

At the end of the day I don't think the benefits justify the effort.

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

```

## Frank Lichtenheld, 2008-03-17 09:03

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <20080317090330.GD10103@mail-vs.djpig.de>
URL: https://gitlist.dev/e/20080317090330.GD10103%40mail-vs.djpig.de
In-Reply-To: <20080317084815.GC10103@mail-vs.djpig.de>

```
Bah, I really should be awake by now...

On Mon, Mar 17, 2008 at 09:48:15AM +0100, Frank Lichtenheld wrote:
> On Mon, Mar 17, 2008 at 02:00:03AM +0100, Xavier Maillard wrote:
> Also your argument that people should git-config anyway instead of

s/should/should use/

> editing by hand kinda contradicts the need for a new format, since
> it would change anything for the git-config interface, only for people

s/would/would not/

> editing the file by hand...
> 
> At the end of the day I don't think the benefits justify the effort.

Gruesse,
-- 
Frank Lichtenheld <frank@lichtenheld.de>
www: http://www.djpig.de/

```

## Ping Yin, 2008-03-18 00:40

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <46dff0320803171740of822d02medc5911e0d056eb4@mail.gmail.com>
URL: https://gitlist.dev/e/46dff0320803171740of822d02medc5911e0d056eb4%40mail.gmail.com
In-Reply-To: <alpine.LSU.1.00.0803141138340.24600@racer.site>

```
On Fri, Mar 14, 2008 at 6:39 PM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Hi,
>
>
>
>  On Fri, 14 Mar 2008, Ping Yin wrote:
>
>  > I find it is so annoying to write submodule definition as follows
>  > (yeah, only url, without path)
>  >
>  > ------------------------------
>  > [submodule 'crawler']
>  >     url = url1
>  > [submodule 'search']
>  >     url = url2
>  > ------------------------------
>  >
>  > I think the following form is more simple
>  > ---------------------------------
>  > [submodule]
>  >      crawler.url = url1
>  >      search.url = url2
>  > ---------------------------------
>  >
>  > So, could we support such simpler form?
>
>  I don't like it at all.  Historically, we had much stricter rules on the
>  variable names than the second part of the section names.
>
>  Also, your suggestion would make things even more confusing than beginners
>  already complain Git is.
>

Beginners will not edit config file directly. If they do, they can
follow the usaual syntax. So beginners don't have to know the new
syntax.

But for advanced users, the config file can be edited freely with more
free syntax. With current syntax, 'submodule'  will be repeated tons
of times when having tons of submoudles. Why not make life much easier
for advanced users in such case?



-- 
Ping Yin

```

## Junio C Hamano, 2008-03-18 00:42

Subject: Re: Should 'git config' support key with dot such as 'a.b'
Message-ID: <7vhcf4ammj.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhcf4ammj.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <46dff0320803171740of822d02medc5911e0d056eb4@mail.gmail.com>

```
"Ping Yin" <pkufranky@gmail.com> writes:

> On Fri, Mar 14, 2008 at 6:39 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
>> Hi,
>>
>>
>>
>>  On Fri, 14 Mar 2008, Ping Yin wrote:
>>
>>  > I find it is so annoying to write submodule definition as follows
>>  > (yeah, only url, without path)
>>  >
>>  > ------------------------------
>>  > [submodule 'crawler']
>>  >     url = url1
>>  > [submodule 'search']
>>  >     url = url2
>>  > ------------------------------
>>  >
>>  > I think the following form is more simple
>>  > ---------------------------------
>>  > [submodule]
>>  >      crawler.url = url1
>>  >      search.url = url2
>>  > ---------------------------------
>>  >
>>  > So, could we support such simpler form?
>>
>>  I don't like it at all.  Historically, we had much stricter rules on the
>>  variable names than the second part of the section names.
>>
>>  Also, your suggestion would make things even more confusing than beginners
>>  already complain Git is.

I am not interested in this at all.  I would usually say "it is not clear
what advantage this has", but in this case, I would rather say "it is
clear there is no advantage in this".

```
