I had two git branches parallel to the master branch. Over time changes between branches had been merged back and forth which caused a way to complicated history, but that's nothing I can change now. What happened is, that some method M existed in branch B, which has been merged into master. "Most" of B is in master, but I'm missing method M. It probably got "lost" in a "wrong" merge. Trying to figure out, where it happened, I tried:
git log -S"def M"
and also
git log -G"def M"
I see the commit where the method has been introduced in the output, but not where it has been removed. Any hint what I might be doing wrong?