Repository navigation
feat(core): #1662 第二轮 Git 更新与历史(GIT-14/15) - #1767
Merged
Merged
Conversation
This was referenced Nov 5, 2026
Owner
Author
本地集成验证(#1662 第二轮)本 PR 与 #1765、#1768、#1767、#1766、#1769 一起,在本地集成分支 Rust
校验脚本 macOS
Windows 前端(在 Mac 上用 bun 跑)
未执行 验证通过后用 |
- GIT-14:新增 Core 命令 git.updatePlan,统一分支 Update/Pull 的路由、blocker、是否询问和默认策略(用户选择 > pull.rebase/pull.ff > ffOnly);git.pullPreflight 增加 configuredStrategy。分叉时 Windows 不再直接 merge,改为在 Pull 对话框选择;macOS 前检失败不再继续执行;两端 dirty 都拦截。 - GIT-15:新增 Core 命令 git.historyWindow(refreshPlan/extendPlan/mergePage/reconcileSelection)。Windows 监听刷新按已加载数量读取,不再缩回第一页;选中、焦点、范围锚点保留;macOS 改用 Core 合并与选择归并。 - 删除两端旧的策略/窗口算法,补共享 fixture、测试替身(对拍 fixture)、功能矩阵和契约文档。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1lck
force-pushed
the
feat/issue-1662-r2-git-update-history
branch
from
November 5, 2026 13:58
3122017 to
c1bf929
Compare
1lck
marked this pull request as ready for review
November 5, 2026 13:58
This was referenced Nov 5, 2026
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.
关联 #1662 第二轮【Git 更新与历史】车道。
GIT-14 Branch Update / Pull 策略
git.updatePlan(route / inspect / defaultStrategy 三个阶段):统一路由、blocker(noUpstream/localChanges/upToDate/notFastForward/stateChanged)、是否询问策略、期望 checkout 与 upstream。git.pullPreflight新增configuredStrategy(读pull.rebase/pull.ff)。needs-strategy并打开 Pull 对话框;对话框预选策略由 Core 决定;删除 GitPullWorkflow 内的策略等待与本地门禁。GIT-15 历史刷新窗口与选择
git.historyWindow(refreshPlan/extendPlan/mergePage/reconcileSelection)。其他
update-plan-v1.json、history-window-v1.json;Windows 测试替身用 fixture 对拍;macOS 测试走真实 Core。验证
bun run typecheck通过;相关 git 测试逐文件通过。src/platform/git-patch-files.test.ts失败,在 stash 掉本改动后同样失败(既有)。swift build通过;test-macos.sh --filter 'GitModuleTests|GitStatusObservationTests'283 项通过。cargo check --bin lithe-windows、verify-service-boundaries/verify-windows-boundaries、完整 Windows 前端全量测试。重叠的 open PR:#1716(
git-log-tool-window.tsx、git-history.json、messages.json/locales/shared.generated.ts);#1659(mod.rs、GitFeatureModel.swift、GitService.swift、GitModels.swift、RustCoreBridge.swift、RustGitOperations.swift、GitModuleTests.swift)。🤖 Generated with Claude Code