Feature: Supports remote branch deletion

This commit is contained in:
xintaofei
2026-04-01 12:41:15 +08:00
parent c25e4062b9
commit b98f50340f
16 changed files with 153 additions and 14 deletions

View File

@@ -644,6 +644,20 @@ export async function gitDeleteBranch(
return getTransport().call("git_delete_branch", { path, branchName, force })
}
export async function gitDeleteRemoteBranch(
path: string,
remote: string,
branch: string,
credentials?: GitCredentials | null
): Promise<void> {
return getTransport().call("git_delete_remote_branch", {
path,
remote,
branch,
credentials: credentials ?? null,
})
}
export async function gitListConflicts(path: string): Promise<string[]> {
return getTransport().call("git_list_conflicts", { path })
}