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

Re: [PATCH 1/2] Complain in the tests about git config not failing with, keys without a section

From
RPRune Philosof <rune@philosof.dk>
Date
Mar 5, 2012, 07:59 UTC
Message-ID
<4F547261.7000506@philosof.dk>
In-Reply-To
<7v8vjiethh.fsf@alter.siamese.dyndns.org>
On 02-03-2012 19:40, Junio C Hamano wrote:
>> git is supposed to fail when having a key without a section, but does not.
> I do not think anybody said it is supposed to fail in this case.
>
> the behaviour for a single level name is just "undefined", which is very different from "must fail".
Quoting from `git help config`:
This command will fail if:
  3. no section was provided,
...
under SYNTAX
  Each variable must belong to some section, which means that there must 
be a section header before the first
        setting of a variable.

-- Greeting Rune Philosof

Previous: Junio C HamanoNext: Jeff King
Message 3 of 6 in “Complain in the tests about git config not failing with, keys without a section”
  1. 1/2 Complain in the tests about git config not failing with, keys without a sectionRune Schjellerup Philosof, Mar 2, 2012
  2. Junio C HamanoMar 2, 2012
  3. Rune PhilosofMar 5, 2012
  4. Jeff KingMar 5, 2012
  5. Junio C HamanoMar 5, 2012
  6. Jeff KingMar 6, 2012

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.