From: milki Date: Mon, 29 Aug 2011 05:42:40 GMT Subject: Re: git-config: case insensitivity for subsections Message-ID: <20110829054240.GB94231@hal.rescomp.berkeley.edu> In-Reply-To: <1314579031.10094.19.camel@umgah.localdomain> On 20:50 Sun 28 Aug , Alex Vandiver wrote: > For reference, https://github.com/bestpractical/config-gitlike/ is a > complete parser for git config files written in perl, which passes git's > config test suite (among other tests). Which is not terribly > surprising, since its parsing algorithm is strongly derived from > config.c's. Yes, I've been looking at it and forked a majority of it into python, but I can't seem to replicate some of the expected quoting behaviour of git-config, among other things (now off-topic). My implementation so far can be seen at [0]. A user gave me a link [1] to his git-config and I cannot correctly parse, for example, his alias.last. -milki [0] https://github.com/jelmer/dulwich/pull/31#issuecomment-1918904 [1] https://github.com/kergoth/homefiles/blob/master/.gitconfig#L67