public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox•com>
To: Jonas Bernoulli <jonas@bernoul•li>
Cc: git@vger•kernel.org
Subject: Re: Empty config sections are neither deleted nor reused
Date: Fri, 13 May 2016 09:47:41 -0700	[thread overview]
Message-ID: <xmqqeg95aor6.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <87r3d6knwo.fsf@bernoul.li> (Jonas Bernoulli's message of "Fri, 13 May 2016 16:55:51 +0200")

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

  reply	other threads:[~2016-05-13 16:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13 14:55 Empty config sections are neither deleted nor reused Jonas Bernoulli
2016-05-13 16:47 ` Junio C Hamano [this message]
2016-05-14 13:21   ` Jonas Bernoulli
2016-05-14 15:10     ` Matthieu Moy
2016-05-14 17:33       ` Junio C Hamano
2016-05-14 18:54         ` Jonas Bernoulli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqeg95aor6.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=jonas@bernoul$(echo .)li \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox