Skip to main content

commit_project

Function commit_project 

Source
pub fn commit_project(
    store: &Store<'_>,
    ax: &ApplyEnv<'_>,
    op: &str,
    summary: String,
    id: &str,
    apply: Option<Touched>,
    stage: impl FnOnce(&mut Transaction<'_>) -> Result<(), CoreError>,
) -> Result<(Option<ApplyReport>, Option<CommitId>), CoreError>
Expand description

Stages one project commit; with apply, the instant apply of what it touched runs in it. state/trust.json reflects committed operations only: when the transaction fails (staging, validation, the leak scanner), the trust file as it was before is written back (a failure to do so is added to the error’s message).