TIL that git version 2.23+ allows one to specify commits to ignore during a git blame. This is useful when there are commits that touched a lot of stuff but only changed formatting.

I was able to update my version of git on ubuntu by adding the git core ppa, apt updating and installing.

sudo add-apt-repository ppa:git-core/ppa

Since I use tpope’s vim-fugitive to do blaming, I wanted not to have to specify the --ignore-rev flag every time I use this command, so I did the following:

cat 12sdfcommithash > .git-blame-ignore-revs
git config blame.ignoreRevsFile .git-blame-ignore-revs

Works pretty well so far.