Skip to content

refactor(git): group worktree operations and ref owners - #37783

Merged
nwparker merged 2 commits into
mainfrom
module-layout-v2/b03-git-owners
Nov 3, 2026
Merged

nwparker merged 2 commits into
mainfrom
module-layout-v2/b03-git-owners

Conversation

@nwparker

@nwparker nwparker commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 398 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6033 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2527 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3506
Prod 199 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​702 $\color{#cf222e}{\Huge{\mathbf{−}}}$​745 $\color{#cf222e}{\Huge{\mathbf{−}}}$​43

Git worktree lifecycle, source-control reads/writes, and ref maintenance currently share a crowded src/main/git directory and forwarding modules. Move 173 files into concrete command-runner, worktree, source-control, remote, and ref owners; remove three pure forwarding modules and update consumers to import defining owners directly.

Retarget test mocks and spies to those same owners while preserving their existing allocations and assertions. Update CI test paths, runner selection, timing metadata, and the diff benchmark sample alongside the moves. Runtime bodies, state owners, platform guards, and remote contracts are preserved.

Validation: full typecheck, Electron production build, WSL guest build, focused upstream scan-timeout regressions, and 31 non-unit check:changed checks passed. The focused regression run passed 470 files / 5,959 tests (6 files and 35 tests skipped). An additional 12-file / 110-test correction run passed, covering real Git compatibility, remote cancellation, and every search-harness consumer. The same search tests passed on pristine main; sharing their original Git stub with the concrete executor restored that behavior on this branch. The broad related-unit selection reached its declared two-minute limit. Independent exact-head source and boundary audits found no behavior or ownership drift.

@nwparker
nwparker merged commit 2169b79 into main Nov 3, 2026
74 checks passed
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.

1 participant