Re: git grep -P is multiline for negative lookahead/behind
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 1, 2016, 21:35 UTC
- Message-ID
- <xmqqr3a8goka.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CACi5S_0QGEgnijGyaBeZxOSobdwfA+d-wa-jrHs64Va097mnRQ@mail.gmail.com>
Michael Giuffrida <michaelpg@chromium.org> writes:
> Is this expected behavior, and if so, why/where is this documented?
I do not think "git grep" was designed to do multi-line anything, with or without lookahead. If you imagine that the implementation attempts its matches line-by-line, does that explain the observed symptom?