* 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
* Re: git config --unset does not remove section
2012-10-21 6:46 git config --unset does not remove section Angelo Borsotti
@ 2012-10-21 7:09 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2012-10-21 7:09 UTC (permalink / raw)
To: Angelo Borsotti; +Cc: git
Angelo Borsotti <angelo.borsotti@gmail.com> writes:
> 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.
True. It would be nice if the removal of the last element removes
the section header as well.
^ 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
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).