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
Enable copying of abbreviated commit IDs #1062
Comments
Sounds like a good idea. Would you mind opening a PR to add it or get it started? I'd be happy to help point in the right direction, etc. I would also suggest a setting more like |
Sure thing. I'll get working on a PR. |
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. |
Verified! After disabling {
"gitlens.advanced.abbreviatedShaLength": 8,
"gitlens.advanced.abbreviateShaOnCopy": true
} GitLens then copies the SHA with the correct abbreviated length of 8 characters. Thanks for all your work on GitLens! It's a great extension and I really appreciate it. |
Awesome! And thanks for your contribution! |
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. |
I would like to be able to copy abbreviated commit IDs (SHAs), but I can only copy full-length IDs. I frequently find myself copying a commit ID, pasting it into a commit message (to reference a related commit), and then manually abbreviating it to 7-8 characters.
We now have the ability to change the length of the abbreviated commit ID, after #608 and #611. However, there doesn't seem to be a way to actually copy the abbreviated commit ID. I can't find any option to set the length of the commit ID copied to the clipboard. Am I missing something?
I'm on macOS Catalina 10.15.5, VSCode 1.46.1, and GitLens 10.2.1.
I would like to see something like:
I'm happy to take on a PR for this, though it will probably be several weeks until I can make time for it.
The text was updated successfully, but these errors were encountered: