migrate worktree changes (#262656)

* migrate worktree changes

* detect LocalChangesOverwritten error before creating & applying stash

* error handle

* make error label clearer

* delete redundant stash length check

* clean up error handling
This commit is contained in:
Christy 😺
2025-08-28 07:57:26 -07:00
committed by GitHub
parent ecf0f28bda
commit 79712fb87f
3 changed files with 82 additions and 0 deletions

View File

@@ -551,6 +551,12 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.migrateWorktreeChanges",
"title": "%command.migrateWorktreeChanges%",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.createWorktree",
"title": "%command.createWorktree%",
@@ -1327,6 +1333,10 @@
"command": "git.deleteTag",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
},
{
"command": "git.migrateWorktreeChanges",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
},
{
"command": "git.createWorktree",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"