Re: git log -S doesn't search stash WIPs
- From
Jonathan del Strother <maillist@steelskies.com>
- Date
- Feb 9, 2008, 15:18 UTC
- Message-ID
- <57518fd10802090718w2ab705aeg6cb1c531666d52a2@mail.gmail.com>
- In-Reply-To
- <alpine.LSU.1.00.0802081208580.11591@racer.site>
On Feb 8, 2008 12:18 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 22 quoted lines
> Hi, > > On Fri, 8 Feb 2008, Jonathan del Strother wrote: > > > "git log --all -Sfoo" doesn't find strings introduced in stash WIP > > commits, only the stash index. > > It is a little unfortunate that a stash will do this: > > HEAD ------- stash > \ / > index > > In other words, the index will be "committed" as a regular commit, but the > working directory will actually be a "merge commit". > > So you need to add "--cc" to see the commit. > > Further, the stash is not just a branch. The stash is actually a stack of > reflogs. So could you try again, with > > $ git log --cc -Sfoo --walk-reflogs stash
Hmmm, I'm a little fuzzy on why --cc helps, though it looks like either or both of --cc and --walk-reflogs will do the trick. Thanks for the help Jon