From bd26bbb674b5f20c93304f9bacd025d4a2ef5ba7 Mon Sep 17 00:00:00 2001 From: Chrismettal Date: Thu, 16 Dec 2021 18:23:59 +0100 Subject: [PATCH] Add "Copy short Commit Hash to Clipboard" button --- web/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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,