[Bf-committers] Proposal: Add a git blame ignore file to the repo.

Ankit ankitjmeel at gmail.com
Fri Oct 16 16:29:08 CEST 2020

Hey all!

Git 2.23 introduced `--ignore-rev <rev>` option to ignore revisions
and `--ignore-revs-file <file>` to do so in bulk. [1]

[2] D9234 proposes adding a file to the repo to list commits, for which
the committer does not deserve to be blamed. An initial list is there in the file,
one may remember some of them,
- ClangFormat: apply to source, most of intern
- Code Style: use "#pragma once" in source directory
- Cleanup: use C comments for descriptive text

After the diff is committed, one would need to run the following for it 
to take effect.
git config blame.ignoreRevsFile .gitblame-ignore-revs
Or to test it, 
git blame --ignore-revs-file=.gitblame-ignore-revs <other options>

The Tools/Git page on the wiki will also be updated.

Ankit Meel

[1] https://git-scm.com/docs/git-blame/2.23.0#Documentation/git-blame.txt---ignore-revltrevgt
[2] https://developer.blender.org/D9234

More information about the Bf-committers mailing list