git log -L:function_name:file_name
can be used to get the log of all commits that touched a specific function. But it always shows the content/diff of the commit as if -p
option was applied.
I have tried to several different options to the command like --oneline
, --abbrev-commit
, -U0
but they just remove a few lines and still print a lot of commit content.
How can I get a oneline summary?