Skip to contentSkip to conversation

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

DISCUSSION Ping Yin 5 participants 7 messages Jun 15, 2016

lore
Share & tools
lore

Ping Yin

author
#0 lore raw

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?

Signature · 1 line
Ping Yin
#1 lore raw

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

Signature · 3 lines
http://www.gnu.org
http://www.april.org
http://www.lolica.org
#2 lore raw
Quoted 14 lines · Xavier Maillard

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.

Quoted 4 lines

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,

Signature · 2 lines
Frank Lichtenheld <[email protected]>
www: http://www.djpig.de/
#3 lore raw

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

Quoted 2 lines · Frank Lichtenheld

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/

Quoted 2 lines

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/

Quoted 3 lines

editing the file by hand...

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

Gruesse,

Signature · 2 lines
Frank Lichtenheld <[email protected]>
www: http://www.djpig.de/
#4 lore raw
In reply to Ping Yin

Hi,

Quoted 10 lines · Ping Yin

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

Quoted 8 lines

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

author
#5 lore raw
Quoted 23 lines · Johannes Schindelin

Hi,

Quoted 17 lines · Ping Yin

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

Quoted 8 lines
Quoted 1 line

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?

Signature · 1 line
Ping Yin
#6 lore raw
Quoted 25 lines · Ping Yin
Quoted 23 lines · Johannes Schindelin

Hi,

Quoted 17 lines · Ping Yin

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

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

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