Re: git config oddity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 15 Jul 2008, Sverre Rabbelier 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.

So "git config" does not remove the section, even if no variable is there 
at the moment.

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).

Hth,
Dscho

--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux