Re: General support for ! in git-config values
- From
Jeff King <peff@peff.net>
- Date
- Feb 3, 2012, 12:09 UTC
- Message-ID
- <20120203120936.GC31441@sigill.intra.peff.net>
- In-Reply-To
- <CAGZ=bq++R+X+2r2_zQ4UZ6JvDC9W9_4nF23MQ6+612_Qe2RS4Q@mail.gmail.com>
On Thu, Feb 02, 2012 at 09:08:46PM -0800, Kyle Moffett wrote:
Show 15 quoted lines
> > I understand. I think we will probably use backtick quoting in git-deploy. So > > > > deploy.prefix=`cat /etc/SERVER_ROLE` > > > > will execute cat /etc/SERVER_ROLE and use the results as the value of > > the config option. > > Alternatively, you could extend the recent proposal for GIT config > "include" statements so that something like this works: > > [include] > exec = echo "deploy.prefix = `cat /etc/SERVER_ROLE`" > exec = /usr/local/bin/git-config-for-ldap-user > > Thoughts?
I am still undecided on whether the utility of the idea is worth the potential hassle, but syntactically I like that better. It does put a little more burden on the called program to handle things like quoting, though.
-Peff