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

Re: [PATCH] completion: add missing configuration variables

From
Jeff King <peff@peff.net>
Date
Dec 17, 2010, 21:21 UTC
Message-ID
<20101217212100.GB11511@sigill.intra.peff.net>
In-Reply-To
<7vei9gi0y3.fsf@alter.siamese.dyndns.org>
On Fri, Dec 17, 2010 at 12:44:36PM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > All variables are case-insensitive. The config parser down-cases them,
> > so all code should treat tham as all-lowercase. However, we tend to
> > document them as camelCase for readability.
> 
> Careful.  The second level of three-level names is supposed to be usable
> for user defined names (e.g. names of branches and remotes) and I think
> the completion code should not downcase it.

Yeah, good point. It is not even "second level" in the parsing code, though, since that code sees:

  [first "second"]
    third
and not
  first.second.third

IOW, the second one is ambiguous in the face of an internal dot. So if I had something like:

  [Foo "Bar.Baz"]
    Bleep = true

then "Foo" and "Bleep" are case-insensitive, but both "Bar" and "Baz" are not. So in terms of dotted components, the rule is "the first and last dotted components are case-insensitive, and middle ones are case-sensitive". At least with respect to my simple test of calling "git config x.y.z". I'm afraid if I look too deeply I might discover some inconsistency. :)

-Peff
Previous: Junio C HamanoNext: Martin von Zweigbergk
Message 11 of 14 in “completion: add missing configuration variables”
  1. completion: add missing configuration variablesMartin von Zweigbergk, Dec 15, 2010
  2. Jeff KingDec 15, 2010
  3. Martin von ZweigbergkDec 15, 2010
  4. Jeff KingDec 16, 2010
  5. Junio C HamanoDec 17, 2010
  6. Jeff KingDec 17, 2010
  7. SZEDER GáborDec 16, 2010
  8. Martin von ZweigbergkDec 16, 2010
  9. Jeff KingDec 16, 2010
  10. Junio C HamanoDec 17, 2010
  11. Jeff KingDec 17, 2010
  12. completion: add missing configuration variablesMartin von Zweigbergk, Dec 20, 2010
  13. Jeff KingDec 20, 2010
  14. Junio C HamanoDec 21, 2010

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.