From 8afa14668e5df4215b0b4013d8d1e4e83797672a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Cie=C5=9Blak?= Date: Thu, 22 Jun 2017 14:22:14 +0200 Subject: [PATCH] Add git amend commands --- extensions/git/src/commands.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 05a93640ca1..681a71887ab 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -657,6 +657,11 @@ export class CommandCenter { await this.commitWithAnyInput({ all: false, signoff: true }); } + @command('git.commitStagedAmend') + async commitStagedAmend(): Promise { + await this.commitWithAnyInput({ all: false, amend: true }); + } + @command('git.commitAll') async commitAll(): Promise { await this.commitWithAnyInput({ all: true }); @@ -667,6 +672,11 @@ export class CommandCenter { await this.commitWithAnyInput({ all: true, signoff: true }); } + @command('git.commitAllAmend') + async commitAllAmend(): Promise { + await this.commitWithAnyInput({ all: true, amend: true }); + } + @command('git.undoCommit') async undoCommit(): Promise { const HEAD = this.model.HEAD;