mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Git - improve reference comparison commands (#274143)
* Git - improve compare commands * Remove an extra check * Fix bad manual merge
This commit is contained in:
@@ -1005,6 +1005,12 @@
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareWithRemote",
|
||||
"title": "%command.graphCompareWithRemote%",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress && scmCurrentHistoryItemRefHasRemote"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareWithMergeBase",
|
||||
"title": "%command.graphCompareWithMergeBase%",
|
||||
@@ -1622,6 +1628,10 @@
|
||||
"command": "git.graph.compareWithMergeBase",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareWithRemote",
|
||||
"when": "false"
|
||||
},
|
||||
{
|
||||
"command": "git.diff.stageHunk",
|
||||
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
|
||||
@@ -2264,15 +2274,20 @@
|
||||
"group": "4_modify@1"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareRef",
|
||||
"command": "git.graph.compareWithRemote",
|
||||
"when": "scmProvider == git",
|
||||
"group": "5_compare@1"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareWithMergeBase",
|
||||
"when": "scmProvider == git && scmHistoryItemHasCurrentHistoryItemRef",
|
||||
"when": "scmProvider == git",
|
||||
"group": "5_compare@2"
|
||||
},
|
||||
{
|
||||
"command": "git.graph.compareRef",
|
||||
"when": "scmProvider == git",
|
||||
"group": "5_compare@3"
|
||||
},
|
||||
{
|
||||
"command": "git.copyCommitId",
|
||||
"when": "scmProvider == git && !listMultiSelection",
|
||||
|
||||
Reference in New Issue
Block a user