From: Junio C Hamano Date: Mon, 28 Mar 2011 22:14:32 GMT Subject: Re: [PATCH] grep: allow -E and -n to be turned on by default via configuration Message-ID: <7v7hbix587.fsf@alter.siamese.dyndns.org> In-Reply-To: <7vbp0ux5c9.fsf_-_@alter.siamese.dyndns.org> Junio C Hamano writes: > + if (!strcmp(var, "grep.extendedregexp")) { > + opt->regflags |= git_config_bool(var, value) ? REG_EXTENDED : 0; > + return 0; > + } Heh, I am an idiot. This should be more like if (git_config_bool(var, value)) opt->regflags |= REG_EXTENDED; else opt->regflags &= ~REG_EXTENDED; return 0;