Earlier today I discovered that some code was missing from my Git repository. I knew some of the missing text, and the file that it was in, so I used git log -S\'missi
git log -S\'missi
git log doesn't show a diff for merge commits by default. The -c or --cc flags should do the trick:
git log
-c
--cc
git log -c -S'missingtext' /path/to/file
More discussion/explanation is here.