Skip to content

Commit 7a8f236

Browse files
committed
Fixes missing stash snapshot option
1 parent d60a7ef commit 7a8f236

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/commands/git/stash.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -659,14 +659,12 @@ export class StashGitCommand extends QuickCommand<State> {
659659
label: context.title,
660660
detail: `Will stash ${stagedOnly ? 'staged' : 'uncommitted'} changes`,
661661
}),
662+
createFlagsQuickPickItem<PushFlags>(state.flags, [...baseFlags, '--snapshot'], {
663+
label: `${context.title} Snapshot`,
664+
detail: 'Will stash uncommitted changes without changing the working tree',
665+
}),
662666
);
663667
if (!stagedOnly) {
664-
confirmations.push(
665-
createFlagsQuickPickItem<PushFlags>(state.flags, [...baseFlags, '--snapshot'], {
666-
label: `${context.title} Snapshot`,
667-
detail: 'Will stash uncommitted changes without changing the working tree',
668-
}),
669-
);
670668
confirmations.push(
671669
createFlagsQuickPickItem<PushFlags>(state.flags, [...baseFlags, '--include-untracked'], {
672670
label: `${context.title} & Include Untracked`,

0 commit comments

Comments
 (0)