area:clienhancementgood first issuehelp wantedpriority:medium
仓库指标
- 星标
- (48,085 个星标)
- PR 合并指标
- (平均合并 11天 1小时) (30 天内合并 45 个 PR)
描述
Problem
rtk discover shows 617 git checkout invocations in the last 30 days, all unhandled. Common forms:
git checkout -b <branch>git checkout <branch>git checkout HEAD -- <files>git checkout -- <files>
Proposal
Compress to the same ok <result> pattern as rtk git add / rtk git commit:
git checkout -b feat/x→ok feat/x (new)git checkout main→ok main(orok main, 3 files updated)git checkout HEAD -- foo.ts bar.ts→ok 2 files restored- On conflict / dirty tree: surface only the conflict/error, not the full status block
Why it matters
Plain git checkout on a branch with diff context can dump dozens of "M / D / ??" lines. Same shape as the existing rtk git pull compression — should be a small extension.