Skip to content

Commit 561f59e

Browse files
committed
Ignore code formatting from git history
1 parent a56b04d commit 561f59e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.git-blame-ignore-revs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Add all the commits you would like to be omitted from the `git blame` output here.
2+
# Add one commit per line and a comment with the reason for the omission.
3+
4+
# In order to use this file, you either need to add it to your config:
5+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
6+
# or pass it as an argument to `git blame`:
7+
# git blame --ignore-revs-file .git-blame-ignore-revs <file>
8+
9+
# To remove the settings from your config:
10+
# git config --unset blame.ignoreRevsFile
11+
# or pass the --ignore-revs-file option with an empty value:
12+
# git blame --ignore-revs-file="" <file>
13+
14+
# While this setting isn't automatically picked up git, it is used by GitHub based on the file name
15+
16+
######### COMMITS IGNORED FROM BLAME #########
17+
18+
# ignore the "Format with black" commit since it affects many files with no logic impact
19+
a56b04dd07c31e5d0713bb4eb321212cfab95b27

0 commit comments

Comments
 (0)