make the Commit restore more safe

This commit is contained in:
Christoph Brandau
2026-07-02 12:40:53 +02:00
parent e18f8f1040
commit 3a8c114d82
4 changed files with 36 additions and 7 deletions
+1 -1
View File
@@ -226,7 +226,7 @@
<GitBranch size={15} aria-hidden="true" />
Branch
</button>
<button class="btn-sm" type="button" onclick={() => onRestoreCommit(item)} disabled={isBusy} title="Reset current branch to this commit">
<button class="btn-sm" type="button" onclick={() => onRestoreCommit(item)} disabled={isBusy} title="Bring this commit's files into your working tree as unstaged changes (no history is changed)">
<RotateCcw size={15} aria-hidden="true" />
Restore
</button>