Git - add command to compare a tag (#273694)

* Git - update command label

* Git - add command to compare a tag
This commit is contained in:
Ladislau Szomoru
2025-10-28 07:43:12 +01:00
committed by GitHub
parent 53cd6a7217
commit 124710c5ff
3 changed files with 91 additions and 65 deletions

View File

@@ -515,8 +515,8 @@
"enablement": "!operationInProgress"
},
{
"command": "git.graph.compareBranches",
"title": "%command.graphCompareBranches%",
"command": "git.graph.compareBranch",
"title": "%command.graphCompareBranch%",
"category": "Git",
"enablement": "!operationInProgress"
},
@@ -592,6 +592,12 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.graph.compareTag",
"title": "%command.graphCompareTag%",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.deleteRemoteTag",
"title": "%command.deleteRemoteTag%",
@@ -1601,13 +1607,17 @@
"when": "false"
},
{
"command": "git.graph.compareBranches",
"command": "git.graph.compareBranch",
"when": "false"
},
{
"command": "git.graph.deleteTag",
"when": "false"
},
{
"command": "git.graph.compareTag",
"when": "false"
},
{
"command": "git.graph.cherryPick",
"when": "false"
@@ -2276,7 +2286,7 @@
"group": "2_branch@2"
},
{
"command": "git.graph.compareBranches",
"command": "git.graph.compareBranch",
"when": "scmProvider == git && scmHistoryItemRef =~ /^refs\\/heads\\//",
"group": "2_branch@3"
},
@@ -2284,6 +2294,11 @@
"command": "git.graph.deleteTag",
"when": "scmProvider == git && scmHistoryItemRef =~ /^refs\\/tags\\//",
"group": "3_tag@2"
},
{
"command": "git.graph.compareTag",
"when": "scmProvider == git && scmHistoryItemRef =~ /^refs\\/tags\\//",
"group": "3_tag@3"
}
],
"editor/title": [