From 1d6aca3823e33a026320dadfd4d680452758edfa Mon Sep 17 00:00:00 2001 From: Quinn Dawkins Date: Mon, 29 Jan 2024 13:29:51 -0500 Subject: [PATCH] Add .git-blame-ignore-revs to allow ignoring sweeping formatting changes (#2823) This allows the following command to be used to ignore sweeping formatting changes. ``` git blame --ignore-revs-file .git-blame-ignore-revs ``` --- .git-blame-ignore-revs | 11 +++++++++++ 1 file changed, 11 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 000000000..0fe0ceed7 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,11 @@ +# This file contains the list of commits to exclude from 'git blame'. +# Such commits do not meaningfully contribute to git history, and include +# large-scale mechanical changes like code formatting style changes. +# +# To set this file as the default ignore file for 'git blame', run: +# ```shell +# git config blame.ignoreRevsFile .git-blame-ignore-revs +# ``` + +# Refresh clang-format +494089d53db4c183b3ba12e36f61ce1c7553984c