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;