All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wiersdorf <scott@perlcode.org>
To: git@vger.kernel.org
Subject: Re: git log -S not finding all commits?
Date: Fri, 9 Oct 2009 06:41:50 -0600	[thread overview]
Message-ID: <20091009124149.GA50560@perlcode.org> (raw)
In-Reply-To: <vpq1vldx7xx.fsf@bauges.imag.fr>

On Fri, Oct 09, 2009 at 10:55:38AM +0200, Matthieu Moy wrote:
> >
> >   perl -0 -ne 'print if /this/'
> 
> 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?

If you want some indication that there is a null character:

  perl -0 -ne '/this/ or next; s/\0/{NULL}/g; print'

otherwise:

  perl -0 -ne '/this/ or next; s/\0/\n/g; print'

Scott
-- 
Scott Wiersdorf
<scott@perlcode.org>

  reply	other threads:[~2009-10-09 12:44 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 [this message]
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=20091009124149.GA50560@perlcode.org \
    --to=scott@perlcode.org \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.