RE: how exactly can git config section names contain periods?
- Date: Fri, 1 Jun 2018 16:50:14 -0400
- From: "Randall S. Becker" <rsbecker@xxxxxxxxxxxxx>
- Subject: RE: how exactly can git config section names contain periods?
> -----Original Message-----
> From: git-owner@xxxxxxxxxxxxxxx <git-owner@xxxxxxxxxxxxxxx> On Behalf
> Of Robert P. J. Day
> Sent: June 1, 2018 4:14 PM
> To: Git Mailing list <git@xxxxxxxxxxxxxxx>
> Subject: how exactly can git config section names contain periods?
> more oddities in my travels, this from Doc.../config.txt:
> "The file consists of sections and variables. A section begins with the
> of the section in square brackets and continues until the next section
> Section names are case-insensitive. Only alphanumeric characters, `-` and
> are allowed in section names.
> ^ ?????
> what? how can section names contain periods? reading further,
> "Sections can be further divided into subsections. To begin a subsection
> its name in double quotes, separated by space from the section name, in
> section header, like in the example below:
> [section "subsection"]
> ok, so how on earth would i use "git config" at the command line to set
> config variable with some arbitrary level of subsections? let's try this:
> $ git config --global a.b.c.d.e rday
> huh ... seemed to work fine, and added this to my ~/.gitconfig:
> [a "b.c.d"]
> e = rday
> as i see it, the first component is intgerpreted as the section name, the
> component is the variable/key(?) name, and everything in between is
> treated as subsection(s), which is not at all obvious from that Doc file,
> "man git-config".
> and if a section name can contain periods, how would you specify that at
> command line?
I'm with Robert on this. I would have thought that the interpretation should
e = rday
Confused as well,
-- Brief whoami:
NonStop developer since approximately 211288444200000000
UNIX developer since approximately 421664400
-- In my real life, I talk too much.