From ec82a93f0c310d0c4508045bd3e934f53c7d2d12 Mon Sep 17 00:00:00 2001 From: James Butler Date: Wed, 23 Mar 2022 17:19:38 -0400 Subject: [PATCH] STYLE: 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 https://github.com/InsightSoftwareConsortium/ITK/commit/3a969e556af074614f75eeb59befbe83e410b47c. Co-authored-by: Hans Johnson --- .git-blame-ignore-revs | 12 ++++++++++++ .gitignore | 1 + 2 files changed, 13 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 00000000000..c92f42724f8 --- /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 diff --git a/.gitignore b/.gitignore index c4c37ee9497..875aeb37454 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Ignore all dotfiles... .* !.gitattributes +!.git-blame-ignore-revs # Ignore all back-up files... *~