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

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

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
Mar 17, 2008, 08:48 UTC
Message-ID
<20080317084815.GC10103@mail-vs.djpig.de>
In-Reply-To
<200803170100.m2H103CF020765@localhost.localdomain>
On Mon, Mar 17, 2008 at 02:00:03AM +0100, Xavier Maillard wrote:
Show 18 quoted lines
>    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/
Previous: Xavier MaillardNext: Frank Lichtenheld
Message 6 of 7 in “Should 'git config' support key with dot such as 'a.b'”
  1. Ping YinMar 14, 2008
  2. Johannes SchindelinMar 14, 2008
  3. Ping YinMar 18, 2008
  4. Junio C HamanoMar 18, 2008
  5. Xavier MaillardMar 17, 2008
  6. Frank LichtenheldMar 17, 2008
  7. Frank LichtenheldMar 17, 2008

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.