Git development
 help / color / mirror / Atom feed
* git config --unset does not remove section
@ 2012-10-21  6:46 Angelo Borsotti
  2012-10-21  7:09 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Angelo Borsotti @ 2012-10-21  6:46 UTC (permalink / raw)
  To: git

Hello,

git config --unset does not remove the section in the configuration
file when the removed key is the last one, leaving then an empty
section that is lo longer used. E.g.:

    git config foo.bar true

creates:

    [foo]
	bar = true

then:

    git config --unset foo.bar

changes the section into:

    [foo]

Another git config foo.bar true changes the config file into:

    [foo]
    [foo]
	bar = true

Having two sections with the same name clutters the config file.

-Angelo Borsotti

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-21  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-21  6:46 git config --unset does not remove section Angelo Borsotti
2012-10-21  7:09 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox