On Tue, Jul 15, 2008 at 5:02 PM, Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote: >> I noticed today that when unsetting the last value in a group git >> config leaves the empty group header. > > That is on purpose. As .git/config was always meant as a user-editable > file, you can put comments into that section. Or comment out some values. Ok, this makes sense :). I agree that I would be unhappily surprised if I found that git removed a section that I had put some comments in when I unset a variable. > It is somewhat unfortunate that setting a variable does not find the > section; the reason is that it sees sections only when a variable is set > (to avoid having to do the parsing itself). Ah, unfortunate indeed. I'm not sure I understand why it does not see the existing header? I had a look at config.c but I couldn't really make out why it doesn't. Would it be difficult to add that? -- Cheers, Sverre Rabbelier -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html