-
What flavor of regex does git-for-windows use? In particular I'm interested in using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Git for Windows uses the same regular expressions as Git, which by default is the POSIX basic regular expression flavor. The Git for Windows relies on the gnulib implementation that is vendored into Please note that Basic Regular Expressions ("BRE") are used here, not POSIX Extended ones. Also please note that |
Beta Was this translation helpful? Give feedback.
Git for Windows uses the same regular expressions as Git, which by default is the POSIX basic regular expression flavor. The
-L :<funcname>:<path>
option is parsed via theparse_range_funcname()
function which uses the standard POSIXregcomp()
/regexec()
functions.Git for Windows relies on the gnulib implementation that is vendored into
compat/regex/
.Please note that Basic Regular Expressions ("BRE") are used here, not POSIX Extended ones.
Also please note that
--perl-regexp
has currently no effect on the-L
option.