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

Method new

atomic-core/src/record/workflow/globalize/file.rs:32–40  ·  view source on GitHub ↗
(path: impl Into<String>)

Source from the content-addressed store, hash-verified

30 /// Create a new globalized file result.
31 #[must_use]
32 pub fn new(path: impl Into<String>) -> Self {
33 Self {
34 path: path.into(),
35 hunks: Vec::new(),
36 bytes_added: 0,
37 dependency_count: 0,
38 file_ops: None,
39 }
40 }
41
42 /// Add a graph_op to the result.
43 pub fn add_hunk(&mut self, graph_op: GraphOp<Option<Hash>>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected