Conversation
ShaoClean
marked this pull request as ready for review
September 16, 2026 14:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景与结果
仓库页新增 Worktrees 入口,列出关联目录及分支/游离 HEAD。点击后在独立标签打开完整仓库页面,并加入同一连接下的仓库列表;重复打开复用登记和标签。每个 worktree 的状态、Diff、草稿和 Git 操作绑定自己的目录,关闭标签保留登记。
变更类型
关联 Issue
Closes #29
变更内容
设计文档(Wiki)
验证
环境:macOS arm64,Node.js 25.5.0,Git 2.43.1,Electron 44.2.0;远端为隔离的本机 SSH 测试服务及临时仓库。
兼容性与风险
不创建或删除远端 worktree,不增加数据库迁移或标签跨重启恢复。新增登记保留在现有 SQLite 仓库表中。远端 Git 需支持 worktree list --porcelain -z 及 rev-parse --path-format=absolute。不支持或不可访问时返回错误,不回退到其他目录。Windows/Linux 实机及外部 SSH 主机未验收。
提交前检查