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

Method graph_only

atomic-core/src/change/format_v3/sections.rs:579–595  ·  view source on GitHub ↗

Create a pair with only a GRAPH section (no semantic layer). This is used for thin changes or when the semantic layer will be regenerated later.

(
        path: String,
        ops: Vec<CompactGraphOp>,
        content_start: u64,
        content_end: u64,
    )

Source from the content-addressed store, hash-verified

577 /// This is used for thin changes or when the semantic layer will
578 /// be regenerated later.
579 pub fn graph_only(
580 path: String,
581 ops: Vec<CompactGraphOp>,
582 content_start: u64,
583 content_end: u64,
584 ) -> Self {
585 Self {
586 graph: Some(GraphSectionPayload::new(
587 path.clone(),
588 ops,
589 content_start,
590 content_end,
591 )),
592 semantic: None,
593 path,
594 }
595 }
596
597 /// Create a pair with only a SEMANTIC section (no graph layer).
598 ///

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected