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

Ankit ankitjmeel at gmail.com
Tue Oct 27 16:02:25 CET 2020


Hello

The revision D9234 [1] has been committed [2].
The Tools/Git wiki page [3] has also been updated.

Please note a correction in the commands in the trailing mail: the file has
been renamed from `.gitblame-ignore-revs` to `.git-blame-ignore-revs`.

Cheers!
Ankit Meel

[1] https://developer.blender.org/D9234 <https://developer.blender.org/D9234>
[2] https://developer.blender.org/rB471c0bcd442d059797e7893618828e7386d711b2 <https://developer.blender.org/rB471c0bcd442d059797e7893618828e7386d711b2>
[3] https://wiki.blender.org/wiki/Tools/Git#Tips <https://wiki.blender.org/wiki/Tools/Git#Tips>

> On 16-Oct-2020, at 19:59, Ankit <ankitjmeel at gmail.com> wrote:
> 
> 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.
> 
> Cheers!
> 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