From: Matthieu Moy Date: Fri, 09 Oct 2009 08:55:38 GMT Subject: Re: git log -S not finding all commits? Message-ID: In-Reply-To: <86tyy9qz08.fsf@blue.stonehenge.com> merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Matthieu" == Matthieu Moy writes: > > Matthieu> Matthieu Moy 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/