Re: [PATCH] grep: allow -E and -n to be turned on by default via configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> 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;


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]