From: Jeff King Date: Wed, 20 Jul 2016 13:31:31 GMT Subject: Re: [PATCH v4] config: add conditional include Message-ID: <20160720133130.GA19122@sigill.intra.peff.net> In-Reply-To: On Sun, Jul 17, 2016 at 10:15:55AM +0200, Johannes Schindelin wrote: > FWIW I am slightly less worried about the conditional includes (it is > already a horrible mess to figure out too-long include chains now, before > having conditional includes, for example). I am slightly more worried > about eventually needing to introduce support for something like > > [if-gitdir(...):section] > thisSettingIsConditional = ... > > or even > > [if (worktree==...):section] > anotherConditional = ... > > and then having two incompatible conditional constructs, one generic, the > other one specific to [include]. > > In other words, if we already introduce a conditional construct, I'd > rather have one that could easily be used for other conditions/sections > when (and if) needed. I had assumed we would resist introducing anything like that, simply because of backwards compatibility issues with the syntax. But I admit that was just an assumption in my head; future compatibility with reality is not guaranteed. :) -Peff