Skip to main content

Module fleet_commit

Module fleet_commit 

Source
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 (never git 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§

CommitReport

Enums§

CommitFailureCategory
CommitOutcome
One repo’s commit outcome.

Functions§

run
Walk every immediate sub-directory of root; for each, commit Cargo.build-spec.json if it differs from HEAD.