git log -S<string> does the job, but if you need to make more complex searches you can use git log -G<regex>.
From the man:
-G<regex>Look for differences whose patch text contains added/removed lines
that match<regex>.
git log -S<string> does the job, but if you need to make more complex searches you can use git log -G<regex>.
From the man:
-G<regex>Look for differences whose patch text contains added/removed lines
that match<regex>.