{"thread":{"id":"39966","subject":"Bug? git config and --unset are not inverses","startedAt":"2015-07-29T18:59:40Z","lastAt":"2015-07-29T19:10:18Z","messageCount":3,"participants":["Dave Borowitz","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"267088","messageId":"CAD0k6qR0J0ks2mL9TTd4wD7qrzKwadFGC=ecJRCsTcSS0ioo_A@mail.gmail.com","threadId":"39966","inReplyTo":null,"subject":"Bug? git config and --unset are not inverses","fromName":"Dave Borowitz","fromEmail":"dborowitz@google.com","sentAt":"2015-07-29T18:59:40Z","receivedAt":"2015-07-29T18:59:40Z","isPatch":false,"sender":{"key":"dborowitz@google.com","avatar":"https://avatars.githubusercontent.com/u/194927?v=4"},"body":"It looks like git config --unset may leave an orphaned section, but a\nsubsequent set adds a new section:\n\n$ git config --file=myconfig section.foo true\n$ git config --file=myconfig --unset section.foo\n$ cat myconfig\n[section]\n$ git config --file=myconfig section.foo true\n$ cat myconfig\n[section]\n[section]\n       foo = true\n$ git --version\ngit version 2.5.0.rc2.392.g76e840b\n"},{"id":"267089","messageId":"xmqqpp3a948q.fsf@gitster.dls.corp.google.com","threadId":"39966","inReplyTo":"CAD0k6qR0J0ks2mL9TTd4wD7qrzKwadFGC=ecJRCsTcSS0ioo_A@mail.gmail.com","subject":"Re: Bug? git config and --unset are not inverses","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-07-29T19:02:29Z","receivedAt":"2015-07-29T19:02:29Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Dave Borowitz <dborowitz@google.com> writes:\n\n> It looks like git config --unset may leave an orphaned section, but a\n> subsequent set adds a new section:\n\nOld news known for at least several years.  Patches welcome ;-)\n"},{"id":"267091","messageId":"xmqqlhdy93vp.fsf@gitster.dls.corp.google.com","threadId":"39966","inReplyTo":"CAD0k6qR0J0ks2mL9TTd4wD7qrzKwadFGC=ecJRCsTcSS0ioo_A@mail.gmail.com","subject":"Re: Bug? git config and --unset are not inverses","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-07-29T19:10:18Z","receivedAt":"2015-07-29T19:10:18Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The most recent round of the discussion is here:\n\n  http://thread.gmane.org/gmane.comp.version-control.git/219505/focus=219524\n"}]}