Fixes #1062 - enables copying of short commit SHAs#1316
Merged
Conversation
#611 added a setting for commit SHA length, `gitlens.advanced.abbreviatedShaLength`. This commit will add `gitlens.advanced.useAbbreviatedShaLengthForCopy`, which will copy the abbreviated commit SHA instead of the full SHA. Respects `gitlens.advanced.abbreviatedShaLength`.
Member
br3ndonland
added a commit
to br3ndonland/dotfiles
that referenced
this pull request
Feb 2, 2021
aacb7b2 gitkraken/vscode-gitlens#1316 https://github.com/eamodio/vscode-gitlens/releases/tag/v11.2.0 https://gitlens.amod.io/#whats-new - Remove deprecated settings: `gitlens.views.lineHistory.enabled`, `gitlens.views.repositories.enabled` - Add new setting for copying abbreviated commit SHAs `gitlens.advanced.abbreviateShaOnCopy` (gitkraken/vscode-gitlens#1316)
br3ndonland
added a commit
to br3ndonland/dotfiles
that referenced
this pull request
Feb 26, 2021
aacb7b2 gitkraken/vscode-gitlens#1316 https://github.com/eamodio/vscode-gitlens/releases/tag/v11.2.0 https://gitlens.amod.io/#whats-new - Remove deprecated settings: `gitlens.views.lineHistory.enabled`, `gitlens.views.repositories.enabled` - Add new setting for copying abbreviated commit SHAs `gitlens.advanced.abbreviateShaOnCopy` (gitkraken/vscode-gitlens#1316)
|
Does/Can this apply to |
Member
|
@matthewstrasiotto it does not. While GitHub seems to support this, I'm not sure about the other providers. Please open a new feature request if you'd want this functionality. But know that we'd need help from the community to test if it would work for all the currently supported remote providers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
As described in #1062, it would be helpful to be able to copy abbreviated commit SHAs instead of full-length SHAs.
#611 provided a setting for commit SHA length,
gitlens.advanced.abbreviatedShaLength. This PR will add a Boolean setting,gitlens.advanced.useAbbreviatedShaLengthForCopy. Iftrue, GitLens will copy the number of characters set ingitlens.advanced.abbreviatedShaLength.Checklist
Fixes $XXX -orCloses #XXX -prefix to auto-close the issue that your PR addresses