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

Method new

atomic-core/src/change/change.rs:158–165  ·  view source on GitHub ↗

Create a new change. # Arguments `header` - Change metadata (message, authors, timestamp) `hunks` - The modifications in this change `contents` - The content blob referenced by hunks `dependencies` - Changes that must be applied before this one

(
        header: ChangeHeader,
        hunks: Vec<GraphOp<Option<Hash>>>,
        contents: Vec<u8>,
        dependencies: Vec<Hash>,
    )

Source from the content-addressed store, hash-verified

156 /// * `contents` - The content blob referenced by hunks
157 /// * `dependencies` - Changes that must be applied before this one
158 pub fn new(
159 header: ChangeHeader,
160 hunks: Vec<GraphOp<Option<Hash>>>,
161 contents: Vec<u8>,
162 dependencies: Vec<Hash>,
163 ) -> Self {
164 Self::with_file_ops(header, hunks, Vec::new(), contents, dependencies)
165 }
166
167 /// Create a new change with semantic layer operations.
168 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected