git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* how exactly can git config section names contain periods?
@ 2018-06-01 20:14 Robert P. J. Day
  2018-06-01 20:50 ` Randall S. Becker
  2018-06-01 21:07 ` Jeff King
  0 siblings, 2 replies; 13+ messages in thread
From: Robert P. J. Day @ 2018-06-01 20:14 UTC (permalink / raw)
  To: Git Mailing list


  more oddities in my travels, this from Doc.../config.txt:

"The file consists of sections and variables.  A section begins with
the name of the section in square brackets and continues until the
next section begins.  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 put its name in double quotes, separated by space from the
section name, in the 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 a 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 last 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, or from "man git-config".

  and if a section name can contain periods, how would you specify
that at the command line?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-06-04 12:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 20:14 how exactly can git config section names contain periods? Robert P. J. Day
2018-06-01 20:50 ` Randall S. Becker
2018-06-01 21:07 ` Jeff King
2018-06-01 21:55   ` Robert P. J. Day
2018-06-01 23:05   ` Junio C Hamano
2018-06-02  0:02     ` Jeff King
2018-06-02  8:50   ` Robert P. J. Day
2018-06-02  9:26     ` Jeff King
2018-06-03  9:53   ` Robert P. J. Day
2018-06-03 10:35     ` SZEDER Gábor
2018-06-03 10:35       ` Robert P. J. Day
2018-06-04 12:09         ` Jeff King
2018-06-03 10:44     ` Johannes Sixt

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).