Skip to content

Commit 7f81b5d

Browse files
committed
Add .git-blame-ignore-revs
'git blame' can be configured to ignore specific commits such as reformatting the codebase with clang format. We track the commits we want to be ignored in .git-blame-ignore-revs. You can use git blame from the cli with: git blame --ignore-revs-file .git-blame-ignore-revs <FILE> Or you configure your git config to always use .git-blame-ignore-revs by setting: git config blame.ignoreRevsFile .git-blame-ignore-revs Or extending your gitconfig with: [blame] ignoreRevsFile = .git-blame-ignore-revs Note that .git-blame-ignore-revs is recognized by GitHub.
1 parent 22df4ac commit 7f81b5d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.git-blame-ignore-revs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# The following refs can be ignored by git blame if 'git blame' is called with
2+
# --ignore-revs-file .git-blame-ignore-revs
3+
# Alternatively configure git to always ignore refs stored in this file by
4+
# calling:
5+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
6+
# Or extend your git config manually with
7+
# [blame]
8+
# ignoreRevsFile = .git-blame-ignore-revs
9+
10+
# Reformatted codebase with clang-format
11+
2b05a8023ff3b4aef2d6047a0ab38ac38d9de026

0 commit comments

Comments
 (0)