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

Re: gitk "find commit adding/removing string"/possible pickaxe bug?

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 18, 2011, 21:16 UTC
Message-ID
<201101182216.01772.trast@student.ethz.ch>
In-Reply-To
<201101182139.28808.trast@student.ethz.ch>
Thomas Rast wrote:
Show 9 quoted lines
> So indeed
> 
>   git log -Squux -c -p
> 
> gives a combined diff.  But OTOH
> 
>   git log -Sbar -c -p
> 
> doesn't; it only gives a diff for the commit that introduced 'bar'.

It's actually even stranger. -S does not seem to filter merges at all. For example, in git.git

  $ git log | grep -c ^Merge
  4677
  $ git log -Sthis_string_never_existed_anywhere -c | grep -c ^Merge
  4677
I think it should just filter all history, shouldn't it?  After all
  $ git log -- this_file_never_existed
also comes up empty.
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jeff King
Message 10 of 10 in “gitk "find commit adding/removing string"/possible pickaxe bug?”
  1. Sebastian HahnJan 18, 2011
  2. Thomas RastJan 18, 2011
  3. Junio C HamanoJan 18, 2011
  4. Jeff KingJan 18, 2011
  5. Thomas RastJan 18, 2011
  6. Jeff KingJan 18, 2011
  7. Junio C HamanoJan 18, 2011
  8. Jeff KingJan 18, 2011
  9. Jeff KingJan 31, 2011
  10. Thomas RastJan 18, 2011

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.