新增功能区分推送与未推送的版本

This commit is contained in:
zyj
2026-03-09 16:55:44 +08:00
parent 1a44645a02
commit 29f1c0514a
7 changed files with 163 additions and 30 deletions

View File

@@ -282,6 +282,16 @@ export function ResetProject(path, hash, mode) {
return $Call.ByID(2061148684, path, hash, mode);
}
/**
* RevertCommit 撤回指定提交(生成一个反向提交)
* @param {string} path
* @param {string} hash
* @returns {$CancellablePromise<void>}
*/
export function RevertCommit(path, hash) {
return $Call.ByID(1334788539, path, hash);
}
/**
* SelectDirectory 打开系统文件夹选择器,返回选中的路径
* @returns {$CancellablePromise<string>}

View File

@@ -133,6 +133,13 @@ export class CommitLog {
*/
this["message"] = "";
}
if (!("pushed" in $$source)) {
/**
* @member
* @type {boolean}
*/
this["pushed"] = false;
}
Object.assign(this, $$source);
}