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

Method add_pending_edge

atomic-core/src/apply/workspace.rs:517–524  ·  view source on GitHub ↗

Add a pending edge to be created.

(
        &mut self,
        from: Position<NodeId>,
        to: Position<NodeId>,
        flag: EdgeFlags,
    )

Source from the content-addressed store, hash-verified

515
516 /// Add a pending edge to be created.
517 pub fn add_pending_edge(
518 &mut self,
519 from: Position<NodeId>,
520 to: Position<NodeId>,
521 flag: EdgeFlags,
522 ) {
523 self.pending_edges.push(PendingEdge::new(from, to, flag));
524 }
525
526 /// Add a pending edge with provenance tracking.
527 pub fn add_pending_edge_with_provenance(

Calls 1

pushMethod · 0.45

Tested by 4

test_workspace_clearFunction · 0.64