git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Noel Grandin <noelgrandin@gmail.com>
To: Junio C Hamano <gitster@pobox.com>, Noel Grandin <noelgrandin@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: bug: git grep -P and multiline mode
Date: Tue, 24 Jun 2014 09:34:44 +0200	[thread overview]
Message-ID: <53A92A14.8010607@gmail.com> (raw)
In-Reply-To: <xmqqa993cykl.fsf@gitster.dls.corp.google.com>

On 2014-06-23 07:42 PM, Junio C Hamano wrote:
> Noel Grandin <noelgrandin@gmail.com> 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 is a pity.

I find the multi-line mode very useful for finding code problems that span multiple lines.

I'm sure there are other options that conflict, and the solution is to normally write out some kind of informative error 
message?

Anyhow, since I'm too busy working on LibreOffice right now to work up a patch for git, I'll stick to using
     find | xargs grep
:-)

      reply	other threads:[~2014-06-24  7:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-23  6:54 bug: git grep -P and multiline mode Noel Grandin
2014-06-23 17:42 ` Junio C Hamano
2014-06-24  7:34   ` Noel Grandin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A92A14.8010607@gmail.com \
    --to=noelgrandin@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).