git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git log -S not finding all commits?

From
SWScott Wiersdorf <scott@perlcode.org>
Date
Oct 9, 2009, 12:41 UTC
Message-ID
<20091009124149.GA50560@perlcode.org>
In-Reply-To
<vpq1vldx7xx.fsf@bauges.imag.fr>
On Fri, Oct 09, 2009 at 10:55:38AM +0200, Matthieu Moy wrote:
Show 5 quoted lines
> >
> >   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>
Previous: Matthieu MoyNext: Randal L. Schwartz
Message 10 of 15 in “git log -S not finding all commits?”
  1. DanielOct 8, 2009
  2. Andreas EricssonOct 8, 2009
  3. DanielOct 8, 2009
  4. Matthieu MoyOct 8, 2009
  5. Matthieu MoyOct 8, 2009
  6. DanielOct 8, 2009
  7. Matthieu MoyOct 8, 2009
  8. Randal L. SchwartzOct 8, 2009
  9. Matthieu MoyOct 9, 2009
  10. Scott WiersdorfOct 9, 2009
  11. Randal L. SchwartzOct 9, 2009
  12. Matthieu MoyOct 9, 2009
  13. Randal L. SchwartzOct 9, 2009
  14. Scott WiersdorfOct 9, 2009
  15. Nanako ShiraishiOct 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.