Add the ability to push empty commits

This commit is contained in:
Tom Basche
2018-08-09 11:48:08 +10:00
parent a0764210a8
commit fd2e5ac7f8
4 changed files with 30 additions and 0 deletions

View File

@@ -190,6 +190,11 @@
"title": "%command.commitStaged%",
"category": "Git"
},
{
"command": "git.commitEmpty",
"title": "%command.commitEmpty%",
"category": "Git"
},
{
"command": "git.commitStagedSigned",
"title": "%command.commitStagedSigned%",
@@ -417,6 +422,10 @@
"command": "git.commit",
"when": "config.git.enabled && gitOpenRepositoryCount != 0"
},
{
"command": "git.commitEmpty",
"when": "config.git.allowcommitEmptys && gitOpenRepositoryCount != 0"
},
{
"command": "git.commitStaged",
"when": "config.git.enabled && gitOpenRepositoryCount != 0"
@@ -599,6 +608,11 @@
"group": "3_commit",
"when": "scmProvider == git"
},
{
"command": "git.commitEmpty",
"group": "3_commit",
"when": "scmProvider == git"
},
{
"command": "git.commitStagedSigned",
"group": "3_commit",
@@ -991,6 +1005,12 @@
"description": "%config.enableCommitSigning%",
"default": false
},
"git.allowEmptyCommits": {
"type": "boolean",
"scope": "resource",
"description": "%config.allowEmptyCommits%",
"default": false
},
"git.decorations.enabled": {
"type": "boolean",
"default": true,