Git - add fetch, pull, push commands to incoming/outgoing (#202809)

This commit is contained in:
Ladislau Szomoru
2024-01-19 11:25:59 +01:00
committed by GitHub
parent 3b9f4a340c
commit 0287cb9fe7
3 changed files with 110 additions and 28 deletions

View File

@@ -10,25 +10,26 @@
},
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",
"enabledApiProposals": [
"diffCommand",
"contribEditorContentMenu",
"contribEditSessions",
"canonicalUriProvider",
"contribViewsWelcome",
"editSessionIdentityProvider",
"quickDiffProvider",
"scmActionButton",
"scmHistoryProvider",
"scmSelectedProvider",
"scmValidation",
"scmMultiDiffEditor",
"tabInputTextMerge",
"timeline",
"contribEditSessions",
"contribEditorContentMenu",
"contribMergeEditorMenus",
"contribMultiDiffEditorMenus",
"contribSourceControlHistoryItemGroupMenu",
"contribSourceControlHistoryItemMenu",
"contribSourceControlInputBoxMenu",
"contribViewsWelcome",
"diffCommand",
"editSessionIdentityProvider",
"quickDiffProvider",
"quickPickSortByLabel",
"contribSourceControlHistoryItemMenu"
"scmActionButton",
"scmHistoryProvider",
"scmMultiDiffEditor",
"scmSelectedProvider",
"scmValidation",
"tabInputTextMerge",
"timeline"
],
"categories": [
"Other"
@@ -511,6 +512,13 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.fetchRef",
"title": "%command.fetch%",
"icon": "$(git-fetch)",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.pull",
"title": "%command.pull%",
@@ -529,6 +537,13 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.pullRef",
"title": "%command.pull%",
"icon": "$(repo-pull)",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.push",
"title": "%command.push%",
@@ -571,6 +586,13 @@
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.pushRef",
"title": "%command.push%",
"icon": "$(repo-push)",
"category": "Git",
"enablement": "!operationInProgress"
},
{
"command": "git.cherryPick",
"title": "%command.cherryPick%",
@@ -1335,6 +1357,18 @@
{
"command": "git.unstageFile",
"when": "false"
},
{
"command": "git.fetchRef",
"when": "false"
},
{
"command": "git.pullRef",
"when": "false"
},
{
"command": "git.pushRef",
"when": "false"
}
],
"scm/title": [
@@ -1802,6 +1836,18 @@
"group": "1_modification@3"
}
],
"scm/incomingChanges": [
{
"command": "git.fetchRef",
"group": "navigation",
"when": "scmProvider == git"
},
{
"command": "git.pullRef",
"group": "navigation",
"when": "scmProvider == git"
}
],
"scm/incomingChanges/allChanges/context": [
{
"command": "git.viewAllChanges",
@@ -1816,6 +1862,13 @@
"group": "inline@1"
}
],
"scm/outgoingChanges": [
{
"command": "git.pushRef",
"group": "navigation",
"when": "scmProvider == git"
}
],
"scm/outgoingChanges/allChanges/context": [
{
"command": "git.viewAllChanges",