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

Method new

atomic-core/src/record/workflow/assembly/mod.rs:155–167  ·  view source on GitHub ↗

Create a new assembly context. # Arguments `header` - The change header # Example ```rust,ignore let header = ChangeHeader::builder().message("Test").build(); let ctx = AssemblyContext::new(header); ```

(header: ChangeHeader)

Source from the content-addressed store, hash-verified

153 /// let ctx = AssemblyContext::new(header);
154 /// ```
155 pub fn new(header: ChangeHeader) -> Self {
156 Self {
157 header,
158 hunks: Vec::new(),
159 span_ops: Vec::new(),
160 file_ops: Vec::new(),
161 dependencies: HashSet::new(),
162 extra_known: HashSet::new(),
163 stats: AssemblyStats::new(),
164 placeholder_branch_base: 0,
165 placeholder_leaf_base: 0,
166 }
167 }
168
169 /// Create a context with pre-allocated capacity.
170 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected