]> git.ipfire.org Git - thirdparty/git.git/commit - git-compat-util.h
use enhanced basic regular expressions on macOS
authorRené Scharfe <l.s.r@web.de>
Sun, 8 Jan 2023 00:42:04 +0000 (01:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Jan 2023 01:06:34 +0000 (10:06 +0900)
commit54463d32ef6798c772c8bbf69b2c1897a854db9f
tree0d731d9274083009674ac43a2b2963b8bda4297b
parentc48035d29b4e524aed3a32f0403676f0d9128863
use enhanced basic regular expressions on macOS

When 1819ad327b (grep: fix multibyte regex handling under macOS,
2022-08-26) started to use the native regex library instead of Git's
own (compat/regex/), it lost support for alternation in basic
regular expressions.

Bring it back by enabling the flag REG_ENHANCED on macOS when
compiling basic regular expressions.

Reported-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Suggested-by: Jeff King <peff@peff.net>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/regcomp_enhanced.c [new file with mode: 0644]
config.mak.uname
git-compat-util.h