Since version 2.23, git-blame has a feature to ignore certain commits. This feature is useful to ignore large formatting or apparently unimportant changes.
- Create a revisions list file. The file name is usually
.git-blame-ignore-revs
- Set the file as a default ignore file for blame by
git config blame.ignoreRevsFile .git-blame-ignore-revs
The file format is described in git-fsck
's man:
https://git-scm.com/docs/git-fsck#Documentation/git-fsck.txt-fsckskipList