Git: Add cherryPick command

This commit is contained in:
sneakyfish5.sneaky@gmail.com
2020-08-09 16:48:22 -05:00
parent 6d913c4c14
commit ff8d4feeb4
5 changed files with 35 additions and 0 deletions

View File

@@ -294,6 +294,7 @@ export const enum Operation {
Fetch = 'Fetch',
Pull = 'Pull',
Push = 'Push',
CherryPick = 'CherryPick',
Sync = 'Sync',
Show = 'Show',
Stage = 'Stage',
@@ -1195,6 +1196,10 @@ export class Repository implements Disposable {
await this.run(Operation.Push, () => this._push(remote, undefined, false, true, forcePushMode));
}
async cherryPick(commitHash: string): Promise<void> {
await this.run(Operation.CherryPick, () => this.repository.cherryPick(commitHash));
}
async blame(path: string): Promise<string> {
return await this.run(Operation.Blame, () => this.repository.blame(path));
}