From e28d26798dd92d935b7048d7ec3c676bf2ae08ef Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 30 Nov 2022 13:27:38 -0500 Subject: [PATCH 1/3] Improve attribution by ignoring bulk formatting This file lists revisions that should be ignored when considering attribution for the actual code written. Code style changes should not be considered as modifications with regards to attribution. To see clean and meaningful blame information. $ git blame important.py --ignore-revs-file .git-blame-ignore-revs To configure git to automatically ignore revisions listed in a file on every call to git blame. $ git config blame.ignoreRevsFile .git-blame-ignore-revs Based on InsightSoftwareConsortium/ITK@3a969e556 and Slicer/Slicer@ec82a93f0 Co-authored-by: Hans Johnson Co-authored-by: James Butler --- .git-blame-ignore-revs | 12 ++++++++++++ 1 file changed, 12 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..c92f4272 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,12 @@ +# +# This file lists revisions that should be ignored when considering +# attribution for the actual code written. Code style changes should +# not be considered as modifications with regards to attribution. +# +# To see clean and meaningful blame information. +# $ git blame important.py --ignore-revs-file .git-blame-ignore-revs +# +# To configure git to automatically ignore revisions listed in a file on every call to git blame. +# $ git config blame.ignoreRevsFile .git-blame-ignore-revs +# +# Ignore changes introduced when doing global file format changes From 89ade46bc2b7334bafa0482504bd866d771cb403 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 30 Nov 2022 13:32:32 -0500 Subject: [PATCH 2/3] Ignore comments removal and white space cleanups in blame history See f937adaf3 --- .git-blame-ignore-revs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index c92f4272..e0315031 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -10,3 +10,6 @@ # $ git config blame.ignoreRevsFile .git-blame-ignore-revs # # Ignore changes introduced when doing global file format changes + +# removing comments around arguments +f937adaf3a80055f9187e226f9724d3265980e00 From a3d8c7bd6738d9f3a2ac71b203661096e986a0b5 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 30 Nov 2022 13:33:47 -0500 Subject: [PATCH 3/3] Ignore header formatting in blame history See 24fa0fe9f and b590a6bfe --- .git-blame-ignore-revs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index e0315031..c74a8676 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -13,3 +13,7 @@ # removing comments around arguments f937adaf3a80055f9187e226f9724d3265980e00 +# Formatted headers and added style check. +24fa0fe9f6fcf12ae4695b4cd324793e573a1756 +# Revert "Formatted headers and added style check." +b590a6bfe034ea3a418b7b523e3490956bcb367a