Support ignore-revs-file in Github's blame view

In Git 2.23+, you can specify a list of commits to skip during git blame:

https://git-scm.com/docs/git-blame#Documentation/git-blame.txt—ignore-revs-fileltfilegt

This is very useful for hiding non-essential commits such as bulk code formatting.

A lot of projects are already using this format, e.g.:

https://github.com/nodejs/node/blob/master/deps/v8/.git-blame-ignore-revs

https://github.com/microsoft/accessibility-insights-web/blob/master/.ignoredRevs

https://github.com/llvm/llvm-project/blob/master/.git-blame-ignore-revs

Although this works fine in command line if you have Git >2.23 

git blame --ignore-revs-file .git-blame-ignore-revs some_file

or

git config blame.ignoreRevsFile .git-blame-ignore-revs
git blame some_file

It will be very nice to have this supported in Github’s native UI of git blame

41 Likes

Hi @sfdye,

Thank you for being here! As you know currently GitHub does not support this feature.

We’re always looking for ways to improve GitHub, so thanks for taking the time to write up your ideas about including a .git-blame-ignore-revs file to manage this!

I’ll pass this feature request on to the relevant team, although I’m afraid I can’t promise if or when they’ll implement this.

1 Like

Hello, i would like to know if there is a plan for the implementation
.git-blame-ignore-revs ?

3 Likes

Hi @andreagriffiths11 ! This would be a really nice feature to have :slight_smile:

Has there been any progress? Does the relevant team at least have a ticket for it?

We’re just about to start using a .git-blame-ignore-revs file in our repo (https://github.com/locustio/locust)

2 Likes

Just wanted to +1 this suggestion! Would be incredibly helpful for my team as we have a lot of bulk changes from code reformatters

2 Likes

Totally agree, we definitely need it, as it’s extremely useful feature, no contest by now.

It would be amazing!
Please consider adding this feature! :pray:

Really useful feature for sure! +1