Re: bug: git grep -P and multiline mode

2014-06-24 Thread Noel Grandin
On 2014-06-23 07:42 PM, Junio C Hamano wrote: Noel Grandin 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'?" Ah, that

Re: bug: git grep -P and multiline mode

2014-06-23 Thread Junio C Hamano
Noel Grandin 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 lin

bug: git grep -P and multiline mode

2014-06-22 Thread Noel Grandin
Hi It looks like the perl regular expression multiline mode does not work with 'git grep' for example, something like git grep -P '(?s)foo.*?bar" will not match a file in the repo where it has something like foo bar ie. split across two lines Regards, Noel Grandin -- To unsubscrib