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