salcode / salcode-git

My Git configuration.
MIT License
3 stars 1 forks source link

Config to exclude commits from git blame #9

Closed salcode closed 10 months ago

salcode commented 1 year ago

If a repo has a .git-blame-ignore-revs file, any commits in that file will be excluded from the results of "git blame".

Additionally, this configuration modifies the git blame output so that:

See https://michaelheap.com/git-ignore-rev/

salcode commented 1 year ago

If a repo does not have a .git-blame-ignore-revs file, we get the error

fatal: could not open object name list: .git-blame-ignore-revs

There is discussion around this topic but no solution as of yet

As such it seems like adding a .git-blame-ignore-revs file to a repo is a good idea however there is no global Git configuration to read this file ☹️

salcode commented 10 months ago

Closing this PR since it doesn't seem this is going to work. ☹️