Re: [PATCH] grep: allow -E and -n to be turned on by default via configuration
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 28, 2011, 22:14 UTC
- Message-ID
- <7v7hbix587.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7vbp0ux5c9.fsf_-_@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> 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;