Command

git log -G

Select differences with added or removed lines matching a regular expression.

Formal Syntax & Structure

git syntaxgit
git log -GREGEX -- PATH
Git Reference