MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fork_group_for

Method fork_group_for

atomic-core/src/merge/resolved.rs:120–125  ·  view source on GitHub ↗

Find the fork group a vertex belongs to, if any.

(&self, vid: VertexId)

Source from the content-addressed store, hash-verified

118
119 /// Find the fork group a vertex belongs to, if any.
120 pub fn fork_group_for(&self, vid: VertexId) -> Option<&[VertexId]> {
121 self.unresolved_forks
122 .iter()
123 .find(|group| group.contains(&vid))
124 .map(|g| g.as_slice())
125 }
126}
127
128impl Default for ResolvedConflicts {

Callers 1

Calls 3

iterMethod · 0.45
containsMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected