Git – Search git history for a change in a merge commit

githistorysearch

To search for a string that has been added/removed in git history I can do

git log -S'some text'

This works great except that it doesn't search through merge commits. How do I get the command to include merge commits in the search?

Best Solution

it appears that the -m flag gives me the desired result

git log -m -S'some text'

I found this on another site, if someone could point me in the direction of a man page that includes this flag that would be great. This one doesn't include it http://ftp.kernel.org/pub/software/scm/git/docs/git-log.html