Skip to main content

extract

Function extract 

Source
pub fn extract(
    path: &str,
    base: &str,
    changed: &str,
    embed_base: bool,
) -> OpsDoc
Expand description

Compute the ops that turn base into changed.

embed_base inlines the base snapshot, making the document self-contained — which is what lets apply run a real three-way merge against a drifted target with nothing but the ops file.