Sometimes there\'s a couple of changed files together with some new, deleted and/or renamed files. When doing git diff or git-log I\'d like to omit the
git diff
git-log
The --diff-filter option works with both diff and log.
--diff-filter
diff
I use --diff-filter=M a lot which restricts diff outputs to only content modifications.
--diff-filter=M
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.
-M
-C
R
C