diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000000..0e907b2a75 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,14 @@ +# .git-blame-ignore-revs +# List of commits that are irrelevant when traversing the blame history. +# GitHub automatically reads and interprets this file when present. +# Developers should run blame command as follows to exclude commits in this file: +# `git blame --ignore-revs-file .git-blame-ignore-revs ` +# Or, to persist the exclusion, change the repo's configuration via: +# `git config blame.ignoreRevsFile .git-blame-ignore-revs` +# +# More info at [^1] and [^2]: +# [^1] https://stackoverflow.com/questions/34957237/can-i-configure-git-blame-to-always-ignore-certain-commits-want-to-fix-git-blam +# [^2] https://docs.github.com/en/repositories/working-with-files/using-files/viewing-and-understanding-files#ignore-commits-in-the-blame-view + +# 2026-07-14 : GH#2805 Line end normalization +3e903d3662525a2fb9b7cc0b8248508c99a13f5d diff --git a/docs/sphinx/source/whatsnew/v0.16.2.rst b/docs/sphinx/source/whatsnew/v0.16.2.rst index 67e908862a..9250fa902d 100644 --- a/docs/sphinx/source/whatsnew/v0.16.2.rst +++ b/docs/sphinx/source/whatsnew/v0.16.2.rst @@ -63,6 +63,9 @@ Requirements Maintenance ~~~~~~~~~~~ +* Add file ``.git-blame-ignore-revs`` to exclude commits from blame history. + It is used automatically by GitHub. Developers may set this behavior locally with + ``git config blame.ignoreRevsFile .git-blame-ignore-revs``. (:pull:`2933`) Contributors