Skip to content

Commit

Permalink
chore: Add .git-blame-ignore-revs to ignore style in blame view (#148)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matthewfeickert authored Jun 17, 2024
1 parent 3517c21 commit 2244305
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# style: Use Ruff for linting and formatting
3517c21f3ec06727805e4b0d8e49ea292b39ba88

0 comments on commit 2244305

Please sign in to comment.