This will print any commits where the diff contains xyz
git log -Sxyz foo.c
Same thing but more readable:
git log -S "xyz" foo.c
This will print any commits where the diff contains xyz
git log -Sxyz foo.c
Same thing but more readable:
git log -S "xyz" foo.c