Add input file for git blame --ignore-revs-file

This allows one to ignore the project-wide reformats
for the purposes of git blame.

File comment copied from openvpn.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
master
Frank Lichtenheld 2025-01-20 13:57:18 +01:00
parent 9104e116ac
commit 4da342c351
1 changed files with 17 additions and 0 deletions

17
.git-blame-ignore-revs Normal file
View File

@ -0,0 +1,17 @@
# This FILE allows git blame to ignore reformatting changes and instead
# shows the previous commit that changed the line.
#
# To avoid manually building the list of commits this commit
# adds a file with a list of reformatting commits. TO use:
#
# git blame --ignore-revs-file=.git-blame-ignore-revs file
#
# or to automatically always use the file
#
# git config blame.ignoreRevsFile .git-blame-ignore-revs
# Initial formatting with uncrustify
2cb3c6e4173c07e08bb2d6b440ad09fa76ac4182
# Switch from uncrustify to clang-format
d2bcb940dcf958ea5457e158b379af60bb9cc4e2