Subject: Re: git log -S not finding all commits?

From: [email-masked] (Randal L. Schwartz)
Date: Thu, 08 Oct 2009 15:52:55 -0700

>>>>> "Matthieu" == Matthieu Moy <[email-masked]> writes:

Matthieu> Matthieu Moy <[email-masked]> 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/'

suffices.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email-masked]> <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