Git - move compare with merge base action into the context menu (#273981)

This commit is contained in:
Ladislau Szomoru
2025-10-29 16:14:03 +00:00
committed by GitHub
parent 20ded57d68
commit f8e2f71c2f
4 changed files with 23 additions and 8 deletions

View File

@@ -1021,7 +1021,7 @@
"command": "git.graph.compareWithMergeBase",
"title": "%command.graphCompareWithMergeBase%",
"category": "Git",
"enablement": "!operationInProgress && git.currentHistoryItemHasMergeBase"
"enablement": "!operationInProgress && scmCurrentHistoryItemRefHasBase"
}
],
"continueEditSession": [
@@ -2270,11 +2270,6 @@
"command": "git.graph.openOutgoingChanges",
"when": "scmProvider == git",
"group": "1_changes@2"
},
{
"command": "git.graph.compareWithMergeBase",
"when": "scmProvider == git",
"group": "2_compare@1"
}
],
"scm/historyItem/context": [
@@ -2303,6 +2298,11 @@
"when": "scmProvider == git",
"group": "5_compare@1"
},
{
"command": "git.graph.compareWithMergeBase",
"when": "scmProvider == git && scmHistoryItemHasCurrentHistoryItemRef",
"group": "5_compare@2"
},
{
"command": "git.copyCommitId",
"when": "scmProvider == git && !listMultiSelection",