Re: [RFC] Git config file reader in Perl (WIP)

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

 



On 1/15/07, Johannes Schindelin <Johannes.Schindelin@xxxxxx> 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?  Readable by all and a lot more flexible than
--perl, --python, --ruby, --tcl, --sh, --c++, --fortran, --lisp,
--html, --that-next-silver-bullet-language-that-hasnt-been-invented-yet-but-will-need-its-own-switch-once-it-has-been.

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?

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