add Repo Managment / Kontext Menu in Braches

This commit is contained in:
Christoph Brandau
2026-07-02 08:35:29 +02:00
parent 97fc4fc1e0
commit eef4869bbb
7 changed files with 719 additions and 62 deletions
+12
View File
@@ -45,6 +45,18 @@ export function createBranch(
return invoke<GitStatus>("create_branch", { path, branch, startPoint: startPoint ?? null });
}
export function renameBranch(
path: string,
oldBranch: string,
newBranch: string,
): Promise<GitStatus> {
return invoke<GitStatus>("rename_branch", { path, oldBranch, newBranch });
}
export function deleteBranch(path: string, branch: string): Promise<GitStatus> {
return invoke<GitStatus>("delete_branch", { path, branch });
}
export function stageFiles(path: string, files: string[]): Promise<GitStatus> {
return invoke<GitStatus>("stage_files", { path, files });
}