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

Method new

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

Create a new graph section payload. # Arguments `path` - File path (relative to repository root). `ops` - Compact graph operations for this file. `content_start` - Start of content range (inclusive). `content_end` - End of content range (exclusive).

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

Source from the content-addressed store, hash-verified

207 /// * `content_start` - Start of content range (inclusive).
208 /// * `content_end` - End of content range (exclusive).
209 pub fn new(
210 path: String,
211 ops: Vec<CompactGraphOp>,
212 content_start: u64,
213 content_end: u64,
214 ) -> Self {
215 Self {
216 path,
217 ops,
218 content_start,
219 content_end,
220 }
221 }
222
223 /// Returns the file path.
224 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected