From: Nguyen Thai Ngoc Duy Date: Thu, 24 Jul 2008 23:16:59 GMT Subject: Re: [PATCH 02/12] git-grep: support --no-external-grep Message-ID: In-Reply-To: <20080724202634.GB3760@blimp.local> On 7/25/08, Alex Riesen wrote: > Nguyen Thai Ngoc Duy, Wed, Jul 23, 2008 16:55:49 +0200: > > > > > +static int no_external_grep; > > + > > > If you have used direct logic instead of negative, your patch would > have been simplier and the code would be easier to understand. I.e.: Point taken. > + if (!strcmp("--no-external-grep", arg)) { > + external_grep = 0; > + continue; > + } > > BTW, how about a config option for this? And maybe --external-grep={yes|no} I don't need --external-grep=yes now, but that would be good for testing external grep. About config option, is it really needed? -- Duy