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

Re: git config --unset does not remove section

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 21, 2012, 07:09 UTC
Message-ID
<7v3918gv33.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAB9Jk9C_b_PScm3vEdvxsjqNHpTbz7OTTdFeFey7Sdb+M5gYFw@mail.gmail.com>
Angelo Borsotti <angelo.borsotti@gmail.com> writes:
Show 7 quoted lines
> 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.

Previous: Angelo Borsotti
Message 2 of 2 in “git config --unset does not remove section”
  1. Angelo BorsottiOct 21, 2012
  2. Junio C HamanoOct 21, 2012

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.