Skip to content

Commit ee87ef4

Browse files
committed
add copy commit hash
1 parent bc8276b commit ee87ef4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

apps/desktop/src/components/CommitContextMenu.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
}}
102102
/>
103103
{/if}
104+
<ContextMenuItem
105+
label="Copy commit hash"
106+
onclick={() => {
107+
writeClipboard(commit.id);
108+
menu?.close();
109+
}}
110+
/>
104111
<ContextMenuItem
105112
label="Copy commit message"
106113
onclick={() => {

apps/desktop/src/components/v3/CommitContextMenu.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@
122122
}}
123123
/>
124124
{/if}
125+
<ContextMenuItem
126+
label="Copy commit hash"
127+
onclick={() => {
128+
writeClipboard(commitId);
129+
close();
130+
}}
131+
/>
125132
<ContextMenuItem
126133
label="Copy commit message"
127134
onclick={() => {

0 commit comments

Comments
 (0)