Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3aa826

Browse files
DEV: Add .git-blame-ignore-revs to ignore style in blame view
Add a git blame ignore-revs file to automatically ignore commits listed in it from the blame view on GitHub. Include in it style changes added by pre-commit hooks which touch multiple files. To ignore the commits in the .git-blame-ignore-revs when running `git blame` locally run: `git blame --ignore-revs-file .git-blame-ignore-revs`. c.f.: * https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt * https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
1 parent 66c12f2 commit f3aa826

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# style: end-of-file-fixer pre-commit hook
2+
94d985a744cf862965b734676bc6d251604a6792
3+
4+
# style: trailing-whitespace pre-commit hook
5+
33516082c5de20cea0de6753ce5e3a627b8c7391
6+
7+
# style: check-docstring-first pre-commit hook
8+
66c12f2778b81a776cd81d22a618dee89d4e8d79

0 commit comments

Comments
 (0)