Re: [RFC] Git config file reader in Perl (WIP)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 16, 2007, 11:12 UTC
- Message-ID
- <Pine.LNX.4.63.0701161206050.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7vwt3nxnak.fsf@assigned-by-dhcp.cox.net>
Hi,
On Tue, 16 Jan 2007, Junio C Hamano wrote:
Show 8 quoted lines
> "Nikolai Weibull" <now@bitwi.se> writes: > > > If we're going down this slippery slope, why not just give up and add > > a --xml switch instead? Readable by all... > > Perhaps all except humans. > > At least YAML, please...
I am _strongly_ opposed to all that rubbish. _If_ we want to use repo-config to preformat the config variables, we should either
1) just use "git repo-config -l" and STFU, or 2) introduce something like "--dump" which Eric implemented.
Everything else is just _complicating_ matters, and for _what_? _Nothing_ at all. If we use repo-config for that task, it should cater for parsing by _script languages_, not _users_.
I work with XML everyday. It has its uses. But this here problem is _not_ one of them. How silly would that be: we parse an easy-to-read format, munge the easy-to-handle internal data format into another "easy-to-read" format which is then parsed by a script language into an easy-to-handle internal data format? No. NO.
Ciao, Dscho
P.S.: The more I think about it, we should just use the output of "repo-config -l".