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

No way to do "blame previous revision" via keyboard #1014

Closed
russelldavis opened this issue Apr 29, 2020 · 8 comments
Closed

No way to do "blame previous revision" via keyboard #1014

russelldavis opened this issue Apr 29, 2020 · 8 comments
Assignees
Labels
feature New feature or request verified Verified
Milestone

Comments

@russelldavis
Copy link

It would be nice to be able to run it from the Command Pallete, and to be able to assign a keyboard shortcut to it.

@russelldavis russelldavis added the feature New feature or request label Apr 29, 2020
@eamodio eamodio added the help wanted Want community input and/or pull request label Dec 23, 2020
@eamodio eamodio added this to the Backlog milestone Dec 23, 2020
@eamodio
Copy link
Member

eamodio commented Dec 23, 2020

So, you want the functionality of the button in the hovers?

@russelldavis
Copy link
Author

That's right.

@eamodio eamodio modified the milestones: Backlog, Soon™ Feb 9, 2021
@eamodio eamodio self-assigned this Feb 9, 2021
@eamodio eamodio removed the help wanted Want community input and/or pull request label Feb 9, 2021
@eamodio eamodio closed this as completed in f7ca6f0 Feb 9, 2021
@eamodio
Copy link
Member

eamodio commented Feb 9, 2021

Adds a new Open Blame Prior to Change command (gitlens.openBlamePriorToChange).

Can you please verify this fix in tomorrow's insiders edition?

You can install the insiders edition from here. Be sure to disable/uninstall the stable version of GitLens first.

@eamodio eamodio added pending-release Resolved but not yet released to the stable edition needs-verification Request for community verification labels Feb 9, 2021
@russelldavis
Copy link
Author

Works perfectly, thank you!

@eamodio eamodio added verified Verified and removed needs-verification Request for community verification labels Feb 11, 2021
@evans
Copy link

evans commented Mar 3, 2021

This is incredible!! We ran Prettier our repo about a year ago and it's been a huge thorn trying to get at the history before that commit. After this change it's a breeze, thank you a thousand times @eamodio for writing the code and @russelldavis for suggesting the change!

@eamodio
Copy link
Member

eamodio commented Mar 3, 2021

FYI, you can setup Git/GitLens to ignore that commit (any commit(s)) from blames.

See the blame.ignoreRevsFile Git config setting or the --ignore-revs-file flag on Git blame.

Basically, you create a file that contains the commits you want to ignore (each on their own line). See here. And then either set blame.ignoreRevsFile in your Git config for that repo, or use --ignore-revs-file <file-name-here> on the command line.

If you don't want to set it in your Git config, you can always make GitLens use it by setting the following in your settings.json

"gitlens.advanced.blame.customArguments": ["--ignore-revs-file", "<file-name-here>"],

@eamodio eamodio removed the pending-release Resolved but not yet released to the stable edition label Mar 5, 2021
@eamodio eamodio modified the milestones: Soon™, Shipped Mar 5, 2021
@evans
Copy link

evans commented Mar 5, 2021

So cool! Thank you so much @eamodio 🤩

@github-actions
Copy link

github-actions bot commented Apr 5, 2021

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 Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request verified Verified
Projects
None yet
Development

No branches or pull requests

3 participants