Skip to content

Commit

Permalink
ref microsoft#44776 Added DeleteRef operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu1kn committed Apr 10, 2018
1 parent 91414f6 commit 81b3b44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions/git/src/repository.ts
Expand Up @@ -292,6 +292,7 @@ export enum Operation {
GetCommitTemplate = 'GetCommitTemplate',
DeleteBranch = 'DeleteBranch',
RenameBranch = 'RenameBranch',
DeleteRef = 'DeleteRef',
Merge = 'Merge',
Ignore = 'Ignore',
Tag = 'Tag',
Expand Down Expand Up @@ -722,6 +723,10 @@ export class Repository implements Disposable {
await this.run(Operation.Reset, () => this.repository.reset(treeish, hard));
}

async deleteRef(ref: string): Promise<void> {
await this.run(Operation.DeleteRef, () => this.repository.deleteRef(ref));
}

@throttle
async fetch(): Promise<void> {
await this.run(Operation.Fetch, () => this.repository.fetch());
Expand Down

0 comments on commit 81b3b44

Please sign in to comment.