Skip to content

Commit 0f85c4c

Browse files
committed
Merge branch 'jc/macos-homebrew-wo-reg-enhanced'
In case homebrew breaks REG_ENHANCED again, leave a in-code comment to suggest use of our replacement regex as a workaround. * jc/macos-homebrew-wo-reg-enhanced: regexp: leave a pointer to resurrect workaround for Homebrew
2 parents 51a7490 + bd66ed3 commit 0f85c4c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

compat/regcomp_enhanced.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
int git_regcomp(regex_t *preg, const char *pattern, int cflags)
55
{
6+
/*
7+
* If you are on macOS with clang and fail to compile this line,
8+
* https://lore.kernel.org/git/458ad3c1-96df-4575-ee42-e6eb754f25f6@gmx.de/
9+
* might be relevant.
10+
*/
611
if (!(cflags & REG_EXTENDED))
712
cflags |= REG_ENHANCED;
813
return regcomp(preg, pattern, cflags);

0 commit comments

Comments
 (0)