功能: 文件与目录支持分支(FE-023),pendBranch 产生挂起更改审查后签入

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 13:26:12 +08:00
co-authored by Cursor
parent f09b8f95b4
commit cfa4141c1a
10 changed files with 280 additions and 7 deletions
+7
View File
@@ -174,6 +174,13 @@ export function rollback(body: { serverPath: string; mode: "single" | "toVersion
return apiClient.post<{ result: GetLatestResult }>("/api/files/rollback", { body })
}
/**
* 分支:把源路径分叉到目标路径(产生 branch 挂起更改),changeset 缺省为 latest。
*/
export function branch(body: { sourceServerPath: string; targetServerPath: string; changeset?: number }) {
return apiClient.post<{ result: FileOperationResult }>("/api/files/branch", { body })
}
/**
* 读取当前 Workspace 的挂起更改。
*/