Add git amend commands

This commit is contained in:
Krzysztof Cieślak
2017-06-22 14:22:14 +02:00
parent 23360c8b24
commit 8afa14668e

View File

@@ -657,6 +657,11 @@ export class CommandCenter {
await this.commitWithAnyInput({ all: false, signoff: true });
}
@command('git.commitStagedAmend')
async commitStagedAmend(): Promise<void> {
await this.commitWithAnyInput({ all: false, amend: true });
}
@command('git.commitAll')
async commitAll(): Promise<void> {
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<void> {
await this.commitWithAnyInput({ all: true, amend: true });
}
@command('git.undoCommit')
async undoCommit(): Promise<void> {
const HEAD = this.model.HEAD;