mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Expose 'tag' and 'deleteTag' in git extension API (#123815)
This commit is contained in:
parent
2eaf2f61aa
commit
b0d7083e79
|
@ -174,6 +174,14 @@ export class ApiRepository implements Repository {
|
|||
return this._repository.getMergeBase(ref1, ref2);
|
||||
}
|
||||
|
||||
tag(name: string, upstream: string): Promise<void> {
|
||||
return this._repository.tag(name, upstream);
|
||||
}
|
||||
|
||||
deleteTag(name: string): Promise<void> {
|
||||
return this._repository.deleteTag(name);
|
||||
}
|
||||
|
||||
status(): Promise<void> {
|
||||
return this._repository.status();
|
||||
}
|
||||
|
|
3
extensions/git/src/api/git.d.ts
vendored
3
extensions/git/src/api/git.d.ts
vendored
|
@ -198,6 +198,9 @@ export interface Repository {
|
|||
|
||||
getMergeBase(ref1: string, ref2: string): Promise<string>;
|
||||
|
||||
tag(name: string, upstream: string): Promise<void>;
|
||||
deleteTag(name: string): Promise<void>;
|
||||
|
||||
status(): Promise<void>;
|
||||
checkout(treeish: string): Promise<void>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue