Bug? git config and --unset are not inverses

From: Dave Borowitz <hidden>
Date: 2016-06-15 23:05:56

It looks like git config --unset may leave an orphaned section, but a
subsequent set adds a new section:

$ git config --file=myconfig section.foo true
$ git config --file=myconfig --unset section.foo
$ cat myconfig
[section]
$ git config --file=myconfig section.foo true
$ cat myconfig
[section]
[section]
       foo = true
$ git --version
git version 2.5.0.rc2.392.g76e840b
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help