Re: [PATCH] config: Add --quoted option to produce machine-parsable output
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 21, 2007, 21:18 UTC
- Message-ID
- <7vbqgddgff.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0705211945470.6410@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 18 quoted lines
>> Git.pm could simply do:
>>
>> my $eval = `git config --perl --get-regexp 'gitcvs\..*'`;
>> my $cfg = eval "$eval";
>>
>> if you code your "perl" notation to produce:
>>
>> +{
>> 'gitcvs.ext.enabled' => 'false',
>> 'gitcvs.logfile' => '/var/log/gitcvs.log',
>> }
>>
>> in order to read things in.
>>
>> Hmm?
>
> IOW, something like
> http://article.gmane.org/gmane.comp.version-control.git/36922Indeed (perhaps except fixing minor details like not hijacking the variable name). Care to resubmit with docs and tests?