Subject: Re: bug: git grep -P and multiline mode

From: Junio C Hamano <[email-masked]>
Date: Mon, 23 Jun 2014 10:42:18 -0700

Noel Grandin <[email-masked]> writes:

> It looks like the perl regular expression multiline mode does not work with 'git grep'

Yes, and deliberately so, to avoid having to think about things like
"how would a multi-line match interact with 'grep -n'?"

We behave as if we feed each line of the contents one line at a time
to the matching engine that is chosen by the -P/-E/-G/-F optoins, so
this limitation is unlikely to change.