From: merlyn@stonehenge•com (Randal L. Schwartz)
To: Matthieu Moy <Matthieu.Moy@grenoble-inp•fr>
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 07:07:02 -0700 [thread overview]
Message-ID: <864oq8r795.fsf@blue.stonehenge.com> (raw)
In-Reply-To: <vpq1vldx7xx.fsf@bauges.imag.fr> (Matthieu Moy's message of "Fri, 09 Oct 2009 10:55:38 +0200")
>>>>> "Matthieu" == Matthieu Moy <Matthieu.Moy@grenoble-inp•fr> writes:
Matthieu> 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/'
Matthieu> Also, this seems to actually print the \0 character. Perhaps a perl
Matthieu> guru can give a simple solution to replace the \0 by a \n?
Just a matter of one more switch. Sorry for forgetting it earlier.
.. | perl -ln0e 'print if /this/'
print "Just another Perl hacker,"; # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge•com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
next prev parent reply other threads:[~2009-10-09 14:12 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
2009-10-09 12:41 ` Scott Wiersdorf
2009-10-09 14:07 ` Randal L. Schwartz [this message]
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=864oq8r795.fsf@blue.stonehenge.com \
--to=merlyn@stonehenge$(echo .)com \
--cc=Matthieu.Moy@grenoble-inp$(echo .)fr \
--cc=ae@op5$(echo .)se \
--cc=git@vger$(echo .)kernel.org \
--cc=mjucde@o2$(echo .)pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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