The --diff-filter
option works with both diff
and log.
I use --diff-filter=M
a lot which restricts diff outputs to only content modifications.
To detect renames and copies and use these in the diff output, you can use -M
and -C
respectively, together with the R
and C
options to --diff-filter
.