Skip to content

Commit

Permalink
Ignore auto-formatting commit from git blame (#1393)
Browse files Browse the repository at this point in the history
Git allows ignore revisions from blame results with

    git blame --ignore-revs-file .git-blame-ignore-revs

GitHub also allows ignoring revisions from blame results:
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view

This is usually used for large auto-formatting commits since the
formatting changes are a bit noisy and can make it tricky to poke
around the blame.
  • Loading branch information
the-mikedavis authored Nov 7, 2022
1 parent c6a8a5e commit 0ccd4c7
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 @@
# Apply erlfmt to the entire codebase (#1297)
c19fb7239ef6766aa7e583d1c010ac38588a3de3

0 comments on commit 0ccd4c7

Please sign in to comment.