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

Method empty

atomic-core/src/diff/semantic/config.rs:153–160  ·  view source on GitHub ↗

Create an empty semantic diff (no changes).

()

Source from the content-addressed store, hash-verified

151impl<'a> SemanticDiff<'a> {
152 /// Create an empty semantic diff (no changes).
153 pub fn empty() -> Self {
154 Self {
155 changes: Vec::new(),
156 stats: SemanticDiffStats::default(),
157 old_lines: Vec::new(),
158 new_lines: Vec::new(),
159 }
160 }
161
162 /// Get the line changes.
163 #[inline]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected