From: Johannes Schindelin Date: Mon, 15 Jan 2007 15:44:37 GMT Subject: Re: [RFC] Git config file reader in Perl (WIP) Message-ID: In-Reply-To: Hi, On Mon, 15 Jan 2007, Nikolai Weibull wrote: > On 1/15/07, Johannes Schindelin wrote: > > > On Mon, 15 Jan 2007, Eric Wong wrote: > > > > > Would you write "git repo-config --perl", then? ;-) > > > > The below patch should be a start (only tested on my fairly standard > > > .git/config). A --python option should be easy, too :) > > > A bit shorter (and gets the booleans right, plus being even easier > > towards --python extension): > > If we're going down this slippery slope, why not just give up and add > a --xml switch instead? AFAIR this switch was meant to _enhance_ performance. > That said, parsing the config file as-is can't be so difficult that we > need to export it to separate files with a different syntax, now can it? The point is having one parser to rule them all, and avoid having different parsers, all with their own set of shortcomings. Ciao, Dscho