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
varREASON_CHECKOUT_FORCE="git checkout --force discards uncommitted changes. Use 'git stash' first.";
2527
2532
varREASON_CHECKOUT_REF_PATH="git checkout <ref> -- <path> overwrites working tree with ref version. Use 'git stash' first.";
2528
2533
varREASON_CHECKOUT_PATHSPEC_FROM_FILE="git checkout --pathspec-from-file can overwrite multiple files. Use 'git stash' first.";
2529
2534
varREASON_CHECKOUT_AMBIGUOUS="git checkout with multiple positional args may overwrite files. Use 'git switch' for branches or 'git restore' for files.";
2535
+
varREASON_SWITCH_DISCARD_CHANGES="git switch --discard-changes discards uncommitted changes. Use 'git stash' first.";
2536
+
varREASON_SWITCH_FORCE="git switch --force discards uncommitted changes. Use 'git stash' first.";
2530
2537
varREASON_RESTORE="git restore discards uncommitted changes. Use 'git stash' first, or use --staged to only unstage.";
2531
2538
varREASON_RESTORE_WORKTREE="git restore --worktree explicitly discards working tree changes. Use 'git stash' first.";
2532
2539
varREASON_RESET_HARD="git reset --hard destroys all uncommitted changes permanently. Use 'git stash' first.";
@@ -2556,6 +2563,8 @@ var CHECKOUT_OPTS_WITH_VALUE = new Set([
varREASON_CHECKOUT_FORCE="git checkout --force discards uncommitted changes. Use 'git stash' first.";
1386
1391
varREASON_CHECKOUT_REF_PATH="git checkout <ref> -- <path> overwrites working tree with ref version. Use 'git stash' first.";
1387
1392
varREASON_CHECKOUT_PATHSPEC_FROM_FILE="git checkout --pathspec-from-file can overwrite multiple files. Use 'git stash' first.";
1388
1393
varREASON_CHECKOUT_AMBIGUOUS="git checkout with multiple positional args may overwrite files. Use 'git switch' for branches or 'git restore' for files.";
1394
+
varREASON_SWITCH_DISCARD_CHANGES="git switch --discard-changes discards uncommitted changes. Use 'git stash' first.";
1395
+
varREASON_SWITCH_FORCE="git switch --force discards uncommitted changes. Use 'git stash' first.";
1389
1396
varREASON_RESTORE="git restore discards uncommitted changes. Use 'git stash' first, or use --staged to only unstage.";
1390
1397
varREASON_RESTORE_WORKTREE="git restore --worktree explicitly discards working tree changes. Use 'git stash' first.";
1391
1398
varREASON_RESET_HARD="git reset --hard destroys all uncommitted changes permanently. Use 'git stash' first.";
@@ -1415,6 +1422,8 @@ var CHECKOUT_OPTS_WITH_VALUE = new Set([
0 commit comments