Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ignoring revisions on blame #947

Closed
pzelnip opened this issue Feb 7, 2020 · 3 comments
Closed

Support ignoring revisions on blame #947

pzelnip opened this issue Feb 7, 2020 · 3 comments
Labels
feature New feature or request

Comments

@pzelnip
Copy link

pzelnip commented Feb 7, 2020

In Git 2.23 options were added to blame to allow ignoring revisions in blames: https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revltrevgt and https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt

This is useful for when (as an example) one does a large bulk change to apply a new formatting scheme to a codebase as those commits aren't particularly useful in a blame.

Any chance support for this could be added to Gitlens? I'd especially like to see support for blame ignore files, like is described in this blog: https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame Perhaps adopting the common convention of looking for a file named .git-blame-ignore-revs and using it if it exists would be a nice default.

@pzelnip pzelnip added the feature New feature or request label Feb 7, 2020
@joelhock
Copy link

joelhock commented Feb 8, 2020

you can specify the ignore file for gitlens to use in blame as described in:
#413 (comment)

or, alternatively, just specify blame.ignorerevsfile=.git-blame-ignore-revs in your gitconfig.

@pzelnip
Copy link
Author

pzelnip commented Feb 8, 2020

Awesome, thanks!

@pzelnip pzelnip closed this as completed Feb 8, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants