Which commits does this list?
git log --oneline -S "foo()"
- Commits signed by the key
foo() - Every commit touching a file with
foo() - Commits whose message has
foo() - Commits that add or remove
foo()
The pickaxe
Play Git ▸
-S lists commits that change the number of occurrences of the string. --grep is the option that searches commit messages.