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

Re: Empty config sections are neither deleted nor reused

From
Junio C Hamano <gitster@pobox.com>
Date
May 13, 2016, 16:47 UTC
Message-ID
<xmqqeg95aor6.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<87r3d6knwo.fsf@bernoul.li>
Jonas Bernoulli <jonas@bernoul.li> writes:
> The only possible combination which doesn't make sense is to not remove
> an empty section and to also not reuse an empty section - unfortunately
> that's what Git currently does.
It is not that simple.

The configuration sections can have comments and they are preserved even when they become empty. Adding something unrelated will still make it appear the stale comment applies to it.

If you are interested, start here:
http://thread.gmane.org/gmane.comp.version-control.git/219505/focus=219524
Previous: Jonas BernoulliNext: Jonas Bernoulli
Message 2 of 6 in “Empty config sections are neither deleted nor reused”
  1. Jonas BernoulliMay 13, 2016
  2. Junio C HamanoMay 13, 2016
  3. Jonas BernoulliMay 14, 2016
  4. Matthieu MoyMay 14, 2016
  5. Junio C HamanoMay 14, 2016
  6. Jonas BernoulliMay 14, 2016

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.