Skip to content

Commit

Permalink
Add .git-blame-ignore-revs (esp8266#8464)
Browse files Browse the repository at this point in the history
Ignore mass-reformatting commits
Include the clang-format, and the previous astyle

Based on the idea from black
https://black.readthedocs.io/en/stable/guides/introducing_black_to_your_project.html#avoiding-ruining-git-blame

To be used with git CLI when exploring some specific file history
```
$ git blame --ignore-revs-file .git-blame-ignore-revs -- file.cpp
```

Or, by modifying the config to apply globally
```
$ git config blame.ignoreRevsFile .git-blame-ignore-revs
```
(note that the by default config will apply only for the current repository)
  • Loading branch information
mcspr committed Mar 3, 2022
1 parent 19b7a29 commit 24c4152
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
9bdcd4f36a2e5285267b69b17e8fc26482dc1c72
eea9999dc5eaf464a432f77d5b65269f9baf198d
98125f88605cd7e46e9be4e1b3ad0600dd5d2b51
91213321df5d49622e7d03426da8366197fe0db0

0 comments on commit 24c4152

Please sign in to comment.