MCPcopy Index your code
hub / github.com/GraphiteEditor/Graphite / find_in_ancestry

Method find_in_ancestry

document/graph-storage/src/document.rs:72–87  ·  view source on GitHub ↗

Search every delta reachable from `head` (following all parents, including a merge's `extra_parents`) for the first matching `predicate`, breadth-first. Resurrection needs full ancestry reachability, so a node added only on a merged-in branch is still found.

(&self, predicate: impl Fn(&Delta) -> bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

Calls 5

all_parentsMethod · 0.80
getMethod · 0.65
into_iterMethod · 0.45
cloneMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected