提交 40a6a2db 编写于 作者: R Rachel Macfarlane

Expose force flag for deleting branch on git extension API

上级 7349680d
...@@ -128,8 +128,8 @@ export class ApiRepository implements Repository { ...@@ -128,8 +128,8 @@ export class ApiRepository implements Repository {
return this._repository.branch(name, checkout, ref); return this._repository.branch(name, checkout, ref);
} }
deleteBranch(name: string): Promise<void> { deleteBranch(name: string, force?: boolean): Promise<void> {
return this._repository.deleteBranch(name); return this._repository.deleteBranch(name, force);
} }
getBranch(name: string): Promise<Branch> { getBranch(name: string): Promise<Branch> {
......
...@@ -138,7 +138,7 @@ export interface Repository { ...@@ -138,7 +138,7 @@ export interface Repository {
hashObject(data: string): Promise<string>; hashObject(data: string): Promise<string>;
createBranch(name: string, checkout: boolean, ref?: string): Promise<void>; 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>; getBranch(name: string): Promise<Branch>;
setBranchUpstream(name: string, upstream: string): Promise<void>; setBranchUpstream(name: string, upstream: string): Promise<void>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册