Skip to main content

run

Function run 

Source
pub fn run(
    root: &Path,
    push: bool,
    rebase_first: bool,
) -> Result<CommitReport, CargoError>
Expand description

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

push = true additionally pushes to origin/<current-branch> after each successful commit. rebase_first runs git pull --rebase before push to absorb upstream changes (sidecars land cleanly on top of CI auto-release commits).