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

Re: how exactly can git config section names contain periods?

From
Johannes Sixt <j6t@kdbg.org>
Date
Jun 3, 2018, 10:44 UTC
Message-ID
<8fe323a2-60ae-8382-ed0e-bfe772052b7f@kdbg.org>
In-Reply-To
<alpine.LFD.2.21.1806030547070.5332@localhost.localdomain>
Am 03.06.2018 um 11:53 schrieb Robert P. J. Day:
Show 5 quoted lines
> if i wanted to do something this admittedly awkward, would using
> periods give me some benefit related to, i don't know, regex matching,
> as compared to using a different character? or am i just way
> overthinking this? is anyone out there actually taking advantage of
> multi-level subsections?
There is nothing wrong with having all of these
     git config foo.a.b.c.key value
     git config foo.a.b.c value
     git config foo.a.b.key value

in a single configuration file, I think. There is nothing special there. They're three different settings in two different (sub-)sections.

-- Hannes
Previous: Jeff King
Message 13 of 13 in “how exactly can git config section names contain periods?”
  1. Robert P. J. DayJun 1, 2018
  2. Randall S. BeckerJun 1, 2018
  3. Jeff KingJun 1, 2018
  4. Robert P. J. DayJun 1, 2018
  5. Junio C HamanoJun 1, 2018
  6. Jeff KingJun 2, 2018
  7. Robert P. J. DayJun 2, 2018
  8. Jeff KingJun 2, 2018
  9. Robert P. J. DayJun 3, 2018
  10. SZEDER GáborJun 3, 2018
  11. Robert P. J. DayJun 3, 2018
  12. Jeff KingJun 4, 2018
  13. Johannes SixtJun 3, 2018

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.