git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git and PCRE2 vs PCRE?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2017, 21:23 UTC
Message-ID
<xmqq60iq31dk.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAH8yC8kOeuVjvoeg0WsSfDeakJh_es2xhYK_O_bM87DEBVcB1w@mail.gmail.com>
Jeffrey Walton <noloader@gmail.com> writes:
> Is it possible to use PCRE2 with Git? If so, how do I tell Git to use PCRE2?

Given that pcre2's symbols are all prefixed with pcre2_ (I only checked http://www.pcre.org/current/doc/html/pcre2api.html) and we do not see any hits from "git grep pcre2", I do not think you can just "configure" Git to use it. Unless pcre2 library has a drop-in replacement backward compatibility mode with pcre library, that is.

It probably is possible to use PCRE2 with Git by adding similar amount of code to grep.[ch] as we have support for pcre and that would be the way you tell Git to use PCRE2, but I think that is probably not the questino you are asking.

Previous: Jeff KingNext: Jeffrey Walton
Message 3 of 4 in “Git and PCRE2 vs PCRE?”
  1. Jeffrey WaltonMar 30, 2017
  2. Jeff KingMar 30, 2017
  3. Junio C HamanoMar 30, 2017
  4. Jeffrey WaltonMar 30, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.