From abac405f2a89e77a9e32dd68964474d5485c884c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 12 Mar 2026 13:59:32 +1000 Subject: [PATCH] Add .git-blame-ignore-revs to ignore the clang-format commit Part-of: --- .git-blame-ignore-revs | 15 +++++++++++++++ 1 file changed, 15 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 0000000..c05314d --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,15 @@ +# 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. +# + +# Format the code with clang-format +a6028a7b87c0e64735b0269a8533ad46471245a9