Skip to main content

commit

Function commit 

Source
pub async fn commit(
    lineage: PackageLineage,
    manifest: &mut Manifest,
    paths: &DomainPaths,
    storage: &(impl Storage + Sync),
    working_dir: PathBuf,
    status: InstalledPackageStatus,
    namespace: Namespace,
    message: String,
    user_meta: Option<Value>,
    workflow: Option<Workflow>,
) -> Res<(PackageLineage, CommitState)>
Expand description

Commit new commit with new message, user_meta and all changes got from calling flow::status

On Ok, the returned CommitState is also stored in lineage.commit — callers that need the new top hash should read it from the tuple rather than unwrapping lineage.commit.