SCM Graph - Add more commands to the context menu (#228480)

* SCM Graph - add "Checkout (Detached)" command

* Add "Cherry Pick" command
This commit is contained in:
Ladislau Szomoru
2024-09-13 15:36:52 +02:00
committed by GitHub
parent 637ffc6de9
commit 597b5e965b
3 changed files with 49 additions and 1 deletions

View File

@@ -452,6 +452,12 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.checkoutRefDetached",
"title": "%command.checkoutRefDetached%",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.branch",
"title": "%command.branch%",
@@ -618,6 +624,12 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.cherryPickRef",
"title": "%command.cherryPickRef%",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.addRemote",
"title": "%command.addRemote%",
@@ -1446,6 +1458,14 @@
{
"command": "git.copyCommitMessage",
"when": "false"
},
{
"command": "git.checkoutRefDetached",
"when": "false"
},
{
"command": "git.cherryPickRef",
"when": "false"
}
],
"scm/title": [
@@ -1953,6 +1973,16 @@
"when": "scmProvider == git",
"group": "1_create@2"
},
{
"command": "git.cherryPickRef",
"when": "scmProvider == git",
"group": "2_modify@1"
},
{
"command": "git.checkoutRefDetached",
"when": "scmProvider == git",
"group": "2_modify@2"
},
{
"command": "git.copyCommitId",
"when": "scmProvider == git && !listMultiSelection",