Skip to main content

apply_transform

Function apply_transform 

Source
pub fn apply_transform(
    store: &Store,
    branch: &str,
    spec: &TransformSpec,
    intent: &Intent,
) -> Result<Applied, StoreError>
Expand description

Apply spec to branch through the store’s gated apply path, attributing every op to intent. The one function POST /v1/transform and lex ws transform share.

branch is an explicit argument by design — this never consults Store::current_branch. On any Err the branch head is unchanged and no op or intent was written (a stage the transform produced may remain in the content-addressed store; it is unreferenced and idempotent).