Skip to content

Add a .git-blame-ignore-revs file with a few formatting commits

These are commits that can be ignored by git blame by using git blame --ignore-revs-file .git-blame-ignore-revs and make the blame output easier to understand since you don't have formatting commits that are typically not what you are looking for.

These are the commits that I found; I also found older ones but I don't know up to which point is useful to hide commits from more than 10 years ago.

I have a recommendation if you work in repos that have this file or can change it. Add to your ~/.gitconfig or wherever you have the git user configuration:

[blame]
    ignoreRevsFile = .git-blame-ignore-revs

This will make git blame use always this file by default. With one caveat, git blame won't work if such file doesn't exist (something people have complained but hasn't been fixed in git as far as I know). Also if using any IDE or editor that uses git blame that would make using the ignore revs file quite easy since it's now the default in git, otherwise one has to find a way to pass --ignore-revs .git-blame-ignore-revs.

Edited by Juan Miguel Carceller

Merge request reports