Browse Source

Add .git-blame-ignore-revs file

As of Git 2.23, this can be used to exclude commits in Git blame
calculations. This is really helpful in excluding bulk
change/reformatting commits that don't do anything to affect code
functionality, but touch lots of files, and can make the commit
history more difficult to follow.

Per the official documentation
[here](https://www.git-scm.com/docs/git-blame), you can take advantage
of this manually like so:

```
git blame --ignore-revs-file .git-blame-ignore-revs foo.py
```

Additionally, you can set this up as a persistent repo-level
configuration setting like so, if so desired:

```
git config blame.ignoreRevsFile .git-blame-ignore-revs
```
remotes/src/master
Natalie Pendragon 7 months ago
parent
commit
24167257f4
  1. 2
      .git-blame-ignore-revs

2
.git-blame-ignore-revs

@ -0,0 +1,2 @@
# Reformat code with Black
43397bdda337c7a0f31019358bd56eb0ae87a993
Loading…
Cancel
Save