https://github.com/git/git
Raw File
Tip revision: 4c42d5ff284067fa32837421408bebfef996bf81 authored by Junio C Hamano on 06 September 2024, 17:22:39 UTC
The thirteenth batch
Tip revision: 4c42d5f
regcomp_enhanced.c
#include "../git-compat-util.h"
#undef regcomp

int git_regcomp(regex_t *preg, const char *pattern, int cflags)
{
	if (!(cflags & REG_EXTENDED))
		cflags |= REG_ENHANCED;
	return regcomp(preg, pattern, cflags);
}
back to top