Expose force flag for deleting branch on git extension API

This commit is contained in:
Rachel Macfarlane
2018-11-07 10:48:12 -08:00
parent 7349680db4
commit 40a6a2db9a
2 changed files with 3 additions and 3 deletions

View File

@@ -128,8 +128,8 @@ export class ApiRepository implements Repository {
return this._repository.branch(name, checkout, ref);
}
deleteBranch(name: string): Promise<void> {
return this._repository.deleteBranch(name);
deleteBranch(name: string, force?: boolean): Promise<void> {
return this._repository.deleteBranch(name, force);
}
getBranch(name: string): Promise<Branch> {

View File

@@ -138,7 +138,7 @@ export interface Repository {
hashObject(data: string): Promise<string>;
createBranch(name: string, checkout: boolean, ref?: string): Promise<void>;
deleteBranch(name: string): Promise<void>;
deleteBranch(name: string, force?: boolean): Promise<void>;
getBranch(name: string): Promise<Branch>;
setBranchUpstream(name: string, upstream: string): Promise<void>;