diff --git a/web/main.ts b/web/main.ts index 29c23c82..936f1c5d 100644 --- a/web/main.ts +++ b/web/main.ts @@ -1226,6 +1226,13 @@ class GitGraphView { sendMessage({ command: 'copyToClipboard', type: 'Commit Hash', data: hash }); } }, + { + title: 'Copy short Commit Hash to Clipboard', + visible: visibility.copySubject, + onClick: () => { + sendMessage({ command: 'copyToClipboard', type: 'Commit Hash', data: abbrevCommit(hash) }); + } + }, { title: 'Copy Commit Subject to Clipboard', visible: visibility.copySubject,