You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add confirmation dialogs for destructive workspace reset actions
The workspace reset menu had several destructive actions that executed
immediately without confirmation, risking accidental data loss.
Add confirmation prompts before: discard unstaged changes (git checkout -- .),
discard untracked files (git clean -fd), and discard staged changes
(stash and drop). Update the existing integration test to expect the
new confirmation dialog.
Closes#874
NukeDescription: "If you want to make all the changes in the worktree go away, this is the way to do it. If there are dirty submodule changes this will stash those changes in the submodule(s).",
1945
1948
NukeTreeConfirmation: "Are you sure you want to nuke the working tree? This will discard all changes in the worktree (staged, unstaged and untracked), which is not undoable.",
1946
1949
DiscardStagedChangesDescription: "This will create a new stash entry containing only staged files and then drop it, so that the working tree is left with only unstaged changes",
1950
+
DiscardAnyUnstagedChangesConfirmation: "Are you sure you want to discard all unstaged changes? This is not undoable.",
1951
+
DiscardUntrackedFilesConfirmation: "Are you sure you want to discard all untracked files? This is not undoable.",
1952
+
DiscardStagedChangesConfirmation: "Are you sure you want to discard all staged changes? This is not undoable.",
0 commit comments