From af6f53d55c275fbca23e3bd69d3cfc687a5b5cb3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 2 Jul 2025 12:42:41 +1000 Subject: [PATCH] git: add git-blame-ignore-revs to ignore the clang-format commits Part-of: --- .git-blame-ignore-revs | 21 +++++++++++++++++++++ 1 file changed, 21 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..3e748186 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,21 @@ +# This file contains revisions to be ignored by git blame. +# These revisions are expected to be formatting-only changes. +# +# Calling `git blame --ignore-revs-file .git-blame-ignore-revs` will +# tell git blame to ignore changes made by these revisions when assigning +# assigning blame, as if the change never happened. +# +# You can enable this as a default for your local repository by running +# `git config blame.ignoreRevsFile .git-blame-ignore-revs` +# Important: if you do this, then switch to a branch without this file, +# `git blame` will fail with an error. +# + +# Run clang-format over the code +2a1095924b0be60f822bc0ff20d567e209a9db73 + +# Add trailing commas to prevent clang-format oddities +aebf3cd4915adc576cf055926caa621e098ec32b + +# Fix some inconsistent whitespace. +60abf1575560cb8e2220ae48a67e7f74b5dc70dd