Skip to main content

peel

Function peel 

Source
pub fn peel<G>(graph: &G, node: NodeId) -> Result<Option<NodeId>>
Expand description

Recursively peel a node until a node of a different type is reached.

This is analogous to libgit2’s git_object_peel with GIT_OBJECT_ANY.

See peel_once for peeling rules.

Returns Ok(Some(node_id)) on success, where node_id is the peel result, Ok(None) if no suitable successor exists (e.g., a root revision with no directory successor).