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

Re: Empty config sections are neither deleted nor reused

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 14, 2016, 15:10 UTC
Message-ID
<vpq37pk7k08.fsf@anie.imag.fr>
In-Reply-To
<877fewzseg.fsf@bernoul.li>
Jonas Bernoulli <jonas@bernoul.li> writes:
Show 9 quoted lines
>> 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.
>
> Now that you mention it, I think I have read that before.  Unfortunately
> I forgot about it until you reminded me.  I would still prefer if empty
> sections were removed and/or reused provided no comment is nearby, but
> now that you reminded me why the current behavior is how it is, I can
> live with it.

Junio's explanation must not necessarily be read as "it has to be the way it is", but more as "getting it right is harder than you think", and that in turn explains why no one changed the behavior.

Actually, Tanay Abhra's GSoC two years ago included working on this, but the project had other priorities and the empty sections issue was not tackled.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Jonas BernoulliNext: Junio C Hamano
Message 4 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.