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

Re: git log -S problem

From
Johannes Sixt <johannes.sixt@telecom.at>
Date
May 21, 2007, 05:27 UTC
Message-ID
<200705210727.23898.johannes.sixt@telecom.at>
In-Reply-To
<7vy7jjjjdm.fsf@assigned-by-dhcp.cox.net>
On Sunday 20 May 2007 23:05, Junio C Hamano wrote:
Show 11 quoted lines
> Johannes Sixt <johannes.sixt@telecom.at> writes:
> > I had expected that the set of commits found by the second search string
> > are a proper superset of those found by the first one. What's wrong here?
> > Why does a search for 'merge-base' not find occurences of
> > 'builtin-merge-base'?
>
> 71dfbf224 removes one line that has "git-merge-base$X" and adds
> one line that has "builtin-merge-base.o".  If you count the
> number of occurences of substring "builtin-merge-base" in the
> preimage and the postimage, you see one addition.  If you count
> the same for substring "merge-base", the net difference is 0.
But is this how -S is *designed* to work? 
Hm, the documentation says (diff-options.txt):
-S<string>::
	Look for differences that contain the change in <string>.

which can be interpreted both to match my expectations as well as the current implementation.

-- Hannes
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “git log -S problem”
  1. Johannes SixtMay 20, 2007
  2. Junio C HamanoMay 20, 2007
  3. Johannes SixtMay 21, 2007
  4. Junio C HamanoMay 21, 2007

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.