cleanup git delete tag command

This commit is contained in:
Joao Moreno
2019-10-24 15:27:57 +02:00
parent 23a4df3672
commit f402575486
6 changed files with 17 additions and 60 deletions

View File

@@ -13,7 +13,7 @@ import * as path from 'path';
import * as nls from 'vscode-nls';
import * as fs from 'fs';
import { StatusBarCommands } from './statusbar';
import { Branch, Ref, Remote, RefType, GitErrorCodes, Status, LogOptions, Change, Tag } from './api/git';
import { Branch, Ref, Remote, RefType, GitErrorCodes, Status, LogOptions, Change } from './api/git';
import { IFileWatcher, watch } from './watch';
const timeout = (millis: number) => new Promise(c => setTimeout(c, millis));
@@ -293,7 +293,6 @@ export const enum Operation {
Ignore = 'Ignore',
Tag = 'Tag',
DeleteTag = 'DeleteTag',
GetTags = 'GetTags',
Stash = 'Stash',
CheckIgnore = 'CheckIgnore',
GetObjectDetails = 'GetObjectDetails',
@@ -1027,10 +1026,6 @@ export class Repository implements Disposable {
await this.run(Operation.DeleteTag, () => this.repository.deleteTag(name));
}
async getTags(): Promise<Tag[]> {
return await this.run(Operation.GetTags, () => this.repository.getTags());
}
async checkout(treeish: string): Promise<void> {
await this.run(Operation.Checkout, () => this.repository.checkout(treeish, []));
}