功能: 文件与目录支持分支(FE-023),pendBranch 产生挂起更改审查后签入
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 的挂起更改。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user