Skip to main content

reject

Function reject 

Source
pub fn reject(
    layout: &Layout,
    src: &str,
    opts: RejectOpts<'_>,
) -> Result<String>
Expand description

Cancel src and point it at a successor in one graph edit.

Writes src to CANCELLED, sets :PIVOTED_TO: to the destination, and settles any claim on src. A created destination, or an existing one whose :DISCOVERED_FROM: is empty, records src as its origin. A non-empty :DISCOVERED_FROM: is left alone.

ยงErrors

Returns an error if src is not in the corpus, --to names no heading, neither a destination nor a create project is given, or a file cannot be rewritten.