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

Skip to content

Commit 4c00377

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 0465337 commit 4c00377

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+
c1a33a481b9c2df605bcb9bef9c19fe65c3dac21
3+
4+
# style: trailing-whitespace pre-commit hook
5+
213061c0804530d04bbbd5c259f10dc8504e5b2b
6+
7+
# style: check-docstring-first pre-commit hook
8+
046533797725293dfc2a6edb9f536b25f08aa636

0 commit comments

Comments
 (0)