From: Jonathan Tan Date: Mon, 13 Dec 2021 23:37:12 GMT Subject: Re: [PATCH v6 2/2] config: include file if remote URL matches a glob Message-ID: <20211213233712.774546-1-jonathantanmy@google.com> In-Reply-To: Junio C Hamano writes: > Perhaps it is easier to approach it from the viewpoint of a new > user who is unfamiliar with what you designed. > > I would imagine that most users would find it natural if a single > pass precedure read and processed lines as it sees them. > > That is, when the first includeif is evaluated, we have seen only > 'remote.a.url' whose value is 'bar', so the condition does not hold. > and then when the second includeif is evaluated, it gets included, > and we read 'bar'. But that is wher configuration reading ends; > remote.b.url is not asked for after we process the second includeif > til the end. > > If you explain > > (1) why such a simplest design would not work well; and > > (2) how the actual design is different from that simplest design to > overcome it. > > it would be easier to grok? > > Thanks. Thanks - this sounds like a good approach. I'll try this.