Skip to content

feat(windows/git): 实现[W2] Git 安全工作流与冲突恢复 - #50

Merged
1lck merged 7 commits into
1lck:integration/windowsfrom
Rangsh:feat/windows/git-workflow
Aug 11, 2026
Merged

1lck merged 7 commits into
1lck:integration/windowsfrom
Rangsh:feat/windows/git-workflow

Conversation

@Rangsh

@Rangsh Rangsh commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Parent: [Windows][Epic] W1-W3 核心工作流补全 #28。将 Windows Git 写操作收敛为可恢复安全工作流:嵌套 begin/end 冻结 watcher,最外层 end 只刷新一次;用 workspace epoch / operation generation 丢弃陈旧结果。
  • 为 checkout / pull / merge / rebase 增加机器可读 preflight 与带上下文的 pending operation;补齐 Fetch、Push、Commit and Push、Merge、Rebase、Continue / Abort / Skip。
  • stash apply/pop 冲突保留 stash 引用与恢复提示;Lithe Shelf 保持 staged / working-tree patch 分离,恢复失败保留原 Shelf。DirtyDocuments 经端口读取,W1 未合入前使用 Fake。
  • Qt 交付 Changes / History 入口、预检对话框、进行中操作栏、冲突筛选与 Diff;对齐 macOS 视觉(IDEA 图标、主题、单击打开 Diff、语法/词级高亮)。

Test plan

  • lithe_windows_git_feature_workflow_tests:preflight 阻塞/放行、pending、非零退出码、陈旧结果
  • lithe_windows_git_workflow_unit_tests:嵌套 freeze、失败路径、一次性 flush;Shelf 隔离与失败保留
  • lithe_windows_git_workflow_repo_tests:真实仓库 merge/rebase conflict → continue/abort;stashRestore;Skip 能力
  • 手工:Fetch / Push / Commit and Push;Merge / Rebase;冲突后 Continue / Abort / Skip
  • 手工:checkout/integration 预检对话框(脏文档、本地改动、unmerged);破坏性操作确认
  • 手工:冲突筛选、打开 Diff、Shelf 创建/恢复失败保留
  • Windows CI 全绿;verify-windows-boundaries(W0)通过

Screenshots

image image image

Rangsh and others added 2 commits August 10, 2026 22:46
为 Git 写操作引入可嵌套的 watcher 冻结/刷新生命周期,以及基于
workspace epoch 与 operation generation 的陈旧结果丢弃机制。

- 新增 preflight 检查与 pending operation,覆盖 checkout/pull/merge/rebase
- 补齐 Fetch/Push、Commit and Push、Merge/Rebase、Continue/Abort/Skip
- 完善 stash/Shelf 分离与冲突恢复,失败时保留 stash 与 Shelf 引用
- 新增 Changes/Log/Diff Qt 面板、预检对话框、冲突 UI 与进行中操作栏
- 补充 feature model、watcher freeze 与仓库级单元测试

Parent: #28
Co-authored-by: Cursor <cursoragent@cursor.com>
同步 IDEA 图标与主题、完善预检对话框与 Shelf 入口,Diff 补齐语法/词级高亮,并修正活动栏与变更列表点击交互。

Co-authored-by: Cursor <cursoragent@cursor.com>
@Rangsh
Rangsh requested a review from 1lck as a code owner August 11, 2026 01:54
@Rangsh Rangsh changed the title feat(windows/git): 实现可恢复 Git 安全工作流(#28) feat(windows/git): 实现[W2] Git 安全工作流与冲突恢复 Aug 11, 2026
Rangsh and others added 5 commits August 11, 2026 10:04
保留 #28 Git 安全工作流 UI/feature model;合入 W0 基线、shelfPatches、终端与 shell 模块源码;workbench 窗口继续使用 Changes/Log/Diff 面板实现。

Co-authored-by: Cursor <cursoragent@cursor.com>
去掉 coordinator/feature 中重复的 preflight API 与 operationState 字段,恢复可编译状态并保留 #28 工作流语义。

Co-authored-by: Cursor <cursoragent@cursor.com>
恢复 stash 冲突路径同步与边界检查通过;工作区切换重置 watcher freeze,preflight Open Diff 不再反复弹窗,dirty 文档端口按路径 upsert。

Co-authored-by: Cursor <cursoragent@cursor.com>
CI 需安装 qtsvg 以匹配 Qt Svg 依赖;Git 子进程加 CREATE_NO_WINDOW,避免 GUI 启动刷 cmd。

Co-authored-by: Cursor <cursoragent@cursor.com>
合并终端会话与 libvterm 上游改动,保留 Git 安全工作流面板与 stash/冲突修复;统一 git_command 隐藏控制台,CMake 同时包含 shelve 与 terminal 服务。

Co-authored-by: Cursor <cursoragent@cursor.com>
@1lck
1lck merged commit e8f323e into 1lck:integration/windows Aug 11, 2026
1 of 3 checks passed
xiaoyumuxi added a commit that referenced this pull request Nov 20, 2026
* chore(viva): 同步上游 33de151 并合入 fork #50,固定 Lithe-viva main 86ce261

* fix(core): 固定版本换成 Lithe-core-rust main 的 83a9f92(#135 squash 合入后的提交)

* fix(core): 固定版本换成 Lithe-core-rust main 的 43e3f27(含 #136 远程连接日志 v2)

* release: 准备 desktop-v0.8.12

* chore(viva): 补同步上游 faaa437,固定 Lithe-viva main 909613b;发布说明列出插件需要的新宿主能力

* docs(release): 0.8.12 发布说明按模板每条一行
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants