Repository navigation
refactor(git): group worktree operations and ref owners - #37783
Merged
Merged
Conversation
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.
Git worktree lifecycle, source-control reads/writes, and ref maintenance currently share a crowded
src/main/gitdirectory 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:changedchecks 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.