From d32243b670b472fc08f577957d1a3fd9bab6430d Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 20 Nov 2022 12:12:35 -0800 Subject: Add .git-blame-ignore-revs to hide whitespace commits from git blame To use this in your local repo clone, you will need to either run `git blame --ignore-revs-file .git-blame-ignore-revs` or set it permanently with `git config blame.ignoreRevsFile .git-blame-ignore-revs` Signed-off-by: Alan Coopersmith --- .git-blame-ignore-revs | 16 ++++++++++++++++ 1 file changed, 16 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..f1cf32a --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,16 @@ +# 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. +# +# Whitespace fixes +73a14e8562d6d133982d89bf07ea89bf546d98e5 +# Strip trailing whitespace +1cd2ab96550b6b7d3abf92f76fe112798af727a4 -- cgit v1.2.3