git-blame-ignore-revs

LLVM 项目中有个文件:.git-blame-ignore-revs

说明是:

# Since version 2.23 (released in August 2019), git-blame has a feature
# to ignore or bypass certain commits.
#
# This file contains a list of commits that are not likely what you
# are looking for in a blame, such as mass reformatting or renaming.
# You can set this file as a default ignore file for blame by running
# the following command.
#
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs

这个文件可以指定要在 blame 时忽略的那些提交(比如对工程整体的格式化)。因为 git 配置是本地的,所以需要手动跑一次。