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... *~