Artifact cfd2606b62c4170380a8dde55c03cf7b408f13f686bd2683644a509ed4f38ce4:
- File
src/main.zig
-
2026-07-20 02:59:29
— part of check-in
[9870033d32]
on branch s5-checkout
— Extract the mutating checkout verb family into src/cmd/checkout.zig
The final family extraction, completing the split of the CLI surface out of main.zig. A pure behaviour-preserving move: the mutating verbs -- update, bisect, merge, revert, undo, redo, commit, amend -- and the helpers and tests private to them move verbatim into src/cmd/checkout.zig, byte-identical to their source but for the pub the dispatch switch forces on the eight dispatched handlers.
The move is non-contiguous: the update error mapper, the digest wire helpers, mintControlArtifact, and commitEpoch stay in main.zig because they are shared with other verbs or with main itself, so moving them would cross a cmd boundary or duplicate them. Shared helpers stay pub and are aliased so the moved bodies read unchanged. No helper duplicated, no cross-cmd import, test count unchanged.
After this, main.zig retains only main, the verb dispatch, runInit, the genuinely shared helpers, and the test helpers. (user: dmestas, size: 113047) [annotate] [blame] [check-ins using]
-
2026-07-20 03:06:19
— part of check-in
[ae54e47b3c]
on branch trunk
— Merge s5-checkout: extract the checkout verb family, completing the split
Fourth and final family extraction. A pure behaviour-preserving move: the mutating checkout verbs -- update, bisect, merge, revert, undo, redo, commit, amend -- and the helpers private to them (the undo journal, the dirty-tree gate, the checkout record, the commit and amend manifest assembly) move verbatim into src/cmd/checkout.zig, byte-identical to their source but for the pub the dispatch forces on the eight handlers. commitEpoch stays in main.zig because main itself builds the ambient clock from it; shared helpers stay pub and aliased. With this, main.zig holds only main, the verb dispatch, init, the shared helpers and the test surface -- the eleven-thousand-line file is now four cmd families plus a thin dispatch core. No helper duplicated, no cross-cmd import, test count unchanged. (user: dmestas, size: 113047) [annotate] [blame] [check-ins using]
-
2026-07-20 02:59:29
— part of check-in
[9870033d32]
on branch s5-checkout
— Extract the mutating checkout verb family into src/cmd/checkout.zig