git: add git-blame-ignore-revs to ignore the clang-format commits

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1256>
This commit is contained in:
Peter Hutterer 2025-07-02 12:42:41 +10:00
parent 31854a829a
commit af6f53d55c

21
.git-blame-ignore-revs Normal file
View file

@ -0,0 +1,21 @@
# This file contains revisions to be ignored by git blame.
# These revisions are expected to be formatting-only changes.
#
# Calling `git blame --ignore-revs-file .git-blame-ignore-revs` will
# tell git blame to ignore changes made by these revisions when assigning
# assigning blame, as if the change never happened.
#
# You can enable this as a default for your local repository by running
# `git config blame.ignoreRevsFile .git-blame-ignore-revs`
# Important: if you do this, then switch to a branch without this file,
# `git blame` will fail with an error.
#
# Run clang-format over the code
2a1095924b0be60f822bc0ff20d567e209a9db73
# Add trailing commas to prevent clang-format oddities
aebf3cd4915adc576cf055926caa621e098ec32b
# Fix some inconsistent whitespace.
60abf1575560cb8e2220ae48a67e7f74b5dc70dd