Add Git: Clone Recursively option

This patch adds a new command, Git: Clone Recursively, that adds the
--recursive option to git clone in order to also check out git
submodules.

Bug: 108381
This commit is contained in:
Jordan Bayles
2020-10-21 23:05:48 -07:00
parent 05c579b7ba
commit 3082f63523
5 changed files with 34 additions and 6 deletions

View File

@@ -38,6 +38,11 @@
"title": "%command.clone%",
"category": "Git"
},
{
"command": "git.cloneRecursively",
"title": "%command.cloneRecursively%",
"category": "Git"
},
{
"command": "git.init",
"title": "%command.init%",
@@ -495,6 +500,10 @@
"command": "git.clone",
"when": "config.git.enabled && !git.missing"
},
{
"command": "git.cloneRecursively",
"when": "config.git.enabled && !git.missing"
},
{
"command": "git.init",
"when": "config.git.enabled && !git.missing"
@@ -885,6 +894,11 @@
"command": "git.showOutput",
"group": "3_footer",
"when": "scmProvider == git"
},
{
"command": "git.cloneRecursively",
"group": "3_footer",
"when": "scmProvider == git"
}
],
"scm/sourceControl": [