Expand description
gen fleet-commit — typed multi-repo commit + push primitive.
Sibling of fleet_sweep. After gen fleet-sweep --write lands
Cargo.build-spec.json sidecars into N repos, gen fleet-commit
walks the same set + commits the typed sidecar to each repo’s
main branch.
Algorithmic guarantees:
- Deterministic: same repo state → same commit content + message
- Side-effect-scoped: only stages
Cargo.build-spec.json(nevergit add -A); other dirty paths in the working tree remain untouched. - Idempotent: re-running on a repo with the spec already committed reports SkippedAlreadyClean.
- Typed failure classification: every shell-level error maps to a typed CommitOutcome variant; no opaque error strings reach the operator.
Structs§
Enums§
- Commit
Failure Category - Commit
Outcome - One repo’s commit outcome.
Functions§
- run
- Walk every immediate sub-directory of
root; for each, commitCargo.build-spec.jsonif it differs from HEAD.