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

Re: git log -S doesn't find some commits

From
BHBernt Hansen <bernt@norang.ca>
Date
Nov 5, 2008, 00:25 UTC
Message-ID
<87bpwvrpbk.fsf@gollum.intra.norang.ca>
In-Reply-To
<alpine.DEB.1.00.0811050014310.30769@pacific.mpi-cbg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 17 quoted lines
> On Tue, 4 Nov 2008, Bernt Hansen wrote:
>
>> Commits B, C, and D are not included in the git log -S output even
>> though with gitk you can see that 'org-publish-validate-link' is in the
>> patch.
>
> It is not sufficient for it to be in the patch, it has to be added or 
> deleted in whole.  So for example if you had a line
>
> 	org-publish-validate-link Hello
>
> and you changed it to
>
> 	org-publish-validate-link World
>
> git log -SWorld will find the commit, but git log 
> -Sorg-publish-validate-link will not.
Ah I wasn't aware of that.

In this case the function 'org-publish-validate-link' was commented out, and then in a later commit the comments were removed.

I was expecting these commits to be found by git log -S.
Thanks!
Bernt
Previous: Junio C Hamano
Message 7 of 7 in “git log -S doesn't find some commits”
  1. Bernt HansenNov 4, 2008
  2. Pieter de BieNov 4, 2008
  3. Johannes SchindelinNov 4, 2008
  4. Junio C HamanoNov 4, 2008
  5. Bernt HansenNov 5, 2008
  6. Junio C HamanoNov 5, 2008
  7. Bernt HansenNov 5, 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.