Skip to content

Commit

Permalink
STYLE: Improve attribution by ignoring bulk formatting
Browse files Browse the repository at this point in the history
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@3a969e5.

Co-authored-by: Hans Johnson <[email protected]>
  • Loading branch information
2 people authored and jcfr committed Apr 6, 2022
1 parent 8538216 commit ec82a93
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Ignore all dotfiles...
.*
!.gitattributes
!.git-blame-ignore-revs

# Ignore all back-up files...
*~
Expand Down

0 comments on commit ec82a93

Please sign in to comment.