From 4da342c351f721ab0dd29037a533047f7a155cd3 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 20 Jan 2025 13:57:18 +0100 Subject: [PATCH] Add input file for git blame --ignore-revs-file This allows one to ignore the project-wide reformats for the purposes of git blame. File comment copied from openvpn. Signed-off-by: Frank Lichtenheld --- .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 0000000..11aecec --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,17 @@ +# This FILE allows git blame to ignore reformatting changes and instead +# shows the previous commit that changed the line. +# +# To avoid manually building the list of commits this commit +# adds a file with a list of reformatting commits. TO use: +# +# git blame --ignore-revs-file=.git-blame-ignore-revs file +# +# or to automatically always use the file +# +# git config blame.ignoreRevsFile .git-blame-ignore-revs + +# Initial formatting with uncrustify +2cb3c6e4173c07e08bb2d6b440ad09fa76ac4182 + +# Switch from uncrustify to clang-format +d2bcb940dcf958ea5457e158b379af60bb9cc4e2