git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: merlyn@stonehenge.com (Randal L. Schwartz)
Cc: Daniel <mjucde@o2.pl>, Andreas Ericsson <ae@op5.se>, git@vger.kernel.org
Subject: Re: git log -S not finding all commits?
Date: Fri, 09 Oct 2009 10:55:38 +0200	[thread overview]
Message-ID: <vpq1vldx7xx.fsf@bauges.imag.fr> (raw)
In-Reply-To: <86tyy9qz08.fsf@blue.stonehenge.com> (Randal L. Schwartz's message of "Thu\, 08 Oct 2009 15\:52\:55 -0700")

merlyn@stonehenge.com (Randal L. Schwartz) writes:

>>>>>> "Matthieu" == Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
> Matthieu> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>>> git log -p --format="%s\n%x00"  | perl -0 -ne 'print if(/whatever-you-search/);'
>
> That "if" is noisier than it needs to be:
>
>   perl -0 -ne 'print if /this/'

Thanks,

Also, this seems to actually print the \0 character. Perhaps a perl
guru can give a simple solution to replace the \0 by a \n?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

  reply	other threads:[~2009-10-09  8:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08  8:21 git log -S not finding all commits? Daniel
2009-10-08  9:12 ` Andreas Ericsson
2009-10-08 11:07   ` Daniel
2009-10-08 11:40     ` Matthieu Moy
2009-10-08 11:57       ` Matthieu Moy
2009-10-08 12:49         ` Daniel
2009-10-08 18:23           ` Matthieu Moy
2009-10-08 22:52         ` Randal L. Schwartz
2009-10-09  8:55           ` Matthieu Moy [this message]
2009-10-09 12:41             ` Scott Wiersdorf
2009-10-09 14:07             ` Randal L. Schwartz
2009-10-09 14:26               ` Matthieu Moy
2009-10-09 14:28                 ` Randal L. Schwartz
2009-10-09 14:33               ` Scott Wiersdorf
2009-10-08 22:02 ` Nanako Shiraishi

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=vpq1vldx7xx.fsf@bauges.imag.fr \
    --to=matthieu.moy@grenoble-inp.fr \
    --cc=ae@op5.se \
    --cc=git@vger.kernel.org \
    --cc=merlyn@stonehenge.com \
    --cc=mjucde@o2.pl \
    /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).