Skip to main content

apply_git_patch

Function apply_git_patch 

Source
pub async fn apply_git_patch<A: AsyncAuthorityStore, O: AsyncObjectStore>(
    workspace: &Workspace<A, O>,
    patch: &[u8],
    idempotency_key: IdempotencyKey,
) -> Result<TransactionCommit<A, O>, GitPatchError>
Expand description

Applies a bounded UTF-8 unified patch as one atomic workspace transaction. System Git, a Git object database, and host-path writes are never involved.