Skip to content

.tip

· one of the small things

blame with -w -C to see through reformatting

One formatter run makes the formatter's commit the author of every line. -w ignores whitespace, and -C follows lines that moved over from another file.

git blame -w -C -C -C src/checkout.ts

Put the big reformatting commits in a .git-blame-ignore-revs file and set blame.ignoreRevsFile, and GitHub's blame view skips them as well.

git