The option gitlens.advanced.abbreviateShaOnCopy allows one to truncate commit ids when copying them.
Usually when I use gitlens.copyRemoteFileUrlToClipboard, I'm making a link to either share, or for my own reference in an issue comment, or sometimes (during development) a comment in the source.
In the case of github, (at least) the standard 7 character truncated SHA is sufficient for this link to work.
I'd like for my copy command to truncate to that length.
Supported providers:
✔️ GitHub
✔️ Gitlab
The option
gitlens.advanced.abbreviateShaOnCopyallows one to truncate commit ids when copying them.Usually when I use
gitlens.copyRemoteFileUrlToClipboard, I'm making a link to either share, or for my own reference in an issue comment, or sometimes (during development) a comment in the source.In the case of github, (at least) the standard 7 character truncated SHA is sufficient for this link to work.
I'd like for my copy command to truncate to that length.
Supported providers:
✔️ GitHub
✔️ Gitlab