Skip to content

Commit 4da342c

Browse files
committed
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>
1 parent 9104e11 commit 4da342c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.git-blame-ignore-revs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This FILE allows git blame to ignore reformatting changes and instead
2+
# shows the previous commit that changed the line.
3+
#
4+
# To avoid manually building the list of commits this commit
5+
# adds a file with a list of reformatting commits. TO use:
6+
#
7+
# git blame --ignore-revs-file=.git-blame-ignore-revs file
8+
#
9+
# or to automatically always use the file
10+
#
11+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
12+
13+
# Initial formatting with uncrustify
14+
2cb3c6e4173c07e08bb2d6b440ad09fa76ac4182
15+
16+
# Switch from uncrustify to clang-format
17+
d2bcb940dcf958ea5457e158b379af60bb9cc4e2

0 commit comments

Comments
 (0)