Skip to main content

undo

Function undo 

Source
pub fn undo(
    root: &Path,
    outcome: &LinkOutcome,
    prior: Option<&[u8]>,
) -> Result<(), CloudError>
Expand description

Undo a link whose vault Cloud refused (rc4-56): the link file gets back prior (its bytes before; None: there was none) and a .lean-ctx-id the link created is removed, so a refused link leaves the checkout as it was.