On Sunday 20 May 2007 23:05, Junio C Hamano wrote: > Johannes Sixt <johannes.sixt@xxxxxxxxxx> 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html