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

git log -S doesn't search stash WIPs

From
Jonathan del Strother <maillist@steelskies.com>
Date
Feb 8, 2008, 10:46 UTC
Message-ID
<57518fd10802080246p4a929b62tc6e260a16d3587@mail.gmail.com>

"git log --all -Sfoo" doesn't find strings introduced in stash WIP commits, only the stash index. That is, if I do :

$ echo foo >> file
$ git add file
$ echo bar >> file
$ git stash
Saved working directory and index state "WIP on master: 00495fc... initial"
(To restore them type "git stash apply")
HEAD is now at 00495fc... initial
$ git log --all -Sfoo
commit a8834ce80ebdf84e6579280c1fc75cdb7b4ac7c9
Author: Jonathan del Strother <me@here.com>
Date:   Fri Feb 8 10:43:44 2008 +0000
    index on master: 00495fc... initial
$ git log --all -Sbar
<this space intentionally left blank>

Is this intentional? Am I missing some git-log option that would allow me to search the stash WIPs?

Next: Johannes Schindelin
Message 1 of 3 in “git log -S doesn't search stash WIPs”
  1. Jonathan del StrotherFeb 8, 2008
  2. Johannes SchindelinFeb 8, 2008
  3. Jonathan del StrotherFeb 9, 2008

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.