From fddb620590b4d5f31453b637e7fe44ec6dae043c Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 17 Sep 2024 14:33:28 -0700 Subject: [PATCH] Add .git-blame-ignore-revs for cleaner blames While we avoid mass reformat commits in general, there's been a couple necessary ones in the past that result in harder to read blames. This file will automatically fix them on GitHub and can fix local blames with one command after checkout. --- .git-blame-ignore-revs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..77aa716c --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,17 @@ +# This file contains a list of Git commit hashes that should be hidden from the +# regular Git history. Typically, this includes commits involving mass auto-formatting +# or other normalizations. Commit hashes *must* use the full 40-character notation. +# To apply the ignore list in your local Git client, you must run: +# +# git config blame.ignoreRevsFile .git-blame-ignore-revs +# +# This file is automatically used by GitHub.com's blame view. + +# Convert CRLF to LF everywhere +bb4aa0e1372751b74425e77c9a42f972971568bf + +# js: Reformat all sources with Prettier +3dea31b5c248594a62f49a3e41fc88d7ceae2de3 + +# Reformat workflow YAML files with Prettier +52e8e1f61712928a36b5257a894bb098a4a98b22