UNPKG

sync-upstream

Version:

A tool for synchronizing code with upstream repositories with incremental updates and parallel processing.

42 lines (41 loc) 1.48 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConflictResolutionStrategy = exports.ConflictType = exports.AuthType = void 0; /** * 认证类型枚举 */ var AuthType; (function (AuthType) { /** SSH 认证 */ AuthType["SSH"] = "ssh"; /** 用户名和密码认证 */ AuthType["USER_PASS"] = "user_pass"; /** 个人访问令牌认证 */ AuthType["PAT"] = "pat"; })(AuthType || (exports.AuthType = AuthType = {})); /** * 冲突类型枚举 */ var ConflictType; (function (ConflictType) { /** 文件内容冲突 */ ConflictType["CONTENT"] = "content"; /** 文件类型冲突(一个是文件,一个是目录) */ ConflictType["TYPE"] = "type"; /** 重命名冲突 */ ConflictType["RENAME"] = "rename"; })(ConflictType || (exports.ConflictType = ConflictType = {})); /** * 冲突解决策略枚举 */ var ConflictResolutionStrategy; (function (ConflictResolutionStrategy) { /** 使用源文件覆盖目标文件 */ ConflictResolutionStrategy["USE_SOURCE"] = "use-source"; /** 保留目标文件 */ ConflictResolutionStrategy["KEEP_TARGET"] = "keep-target"; /** 尝试自动合并(仅适用于文本文件) */ ConflictResolutionStrategy["AUTO_MERGE"] = "auto-merge"; /** 提示用户解决 */ ConflictResolutionStrategy["PROMPT_USER"] = "prompt-user"; })(ConflictResolutionStrategy || (exports.ConflictResolutionStrategy = ConflictResolutionStrategy = {}));