repo.or.cz
/
git
/
gitster.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync with 'maint'
[git/gitster.git]
/
compat
/
regcomp_enhanced.c
blob
84193ce53b64f5ff98bbcc3c4869c53a7796a17e
1
#include
"../git-compat-util.h"
2
#undef regcomp
3
4
int
git_regcomp
(
regex_t
*
preg
,
const char
*
pattern
,
int
cflags
)
5
{
6
if
(!(
cflags
&
REG_EXTENDED
))
7
cflags
|=
REG_ENHANCED
;
8
return
regcomp
(
preg
,
pattern
,
cflags
);
9
}