I would like to identify all the commits that removed a specified string from any file of the repository.
Here is the case for which I need this : I have a java method called someMethod I know this method was called in the past but it is not anymore (somebody removed the code). I don't know from which file it was called.
So this is my question : Is it possible to find which commit removed this method call. More generally, is it possible to find the commits that removed the string "someMethod" from any file? Manually, I would generate unified diff for each commit and look if someMethod appears in the diff.
Is there an automatic process to do it?
git log --all -p | lessand search for "someMethod" interactively withinless.