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

Method binary

atomic-core/src/record/workflow/compare.rs:149–157  ·  view source on GitHub ↗

Create a result for binary files. Binary files are marked as changed but have no diff operations. # Arguments `old_encoding` - Encoding of pristine content `new_encoding` - Encoding of working content

(old_encoding: Encoding, new_encoding: Encoding)

Source from the content-addressed store, hash-verified

147 /// * `old_encoding` - Encoding of pristine content
148 /// * `new_encoding` - Encoding of working content
149 pub fn binary(old_encoding: Encoding, new_encoding: Encoding) -> Self {
150 Self {
151 old_encoding,
152 new_encoding,
153 content_changed: true,
154 diff_ops: Vec::new(),
155 is_binary: true,
156 }
157 }
158
159 /// Create a result with diff operations.
160 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected