Re: git log -S not finding all commits?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Oct 9, 2009, 08:55 UTC
- Message-ID
- <vpq1vldx7xx.fsf@bauges.imag.fr>
- In-Reply-To
- <86tyy9qz08.fsf@blue.stonehenge.com>
merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 8 quoted lines
>>>>>> "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/