mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Add git amend commands
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user