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

Method has_changes

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

Check if the content has any changes. Returns `true` if: - Raw bytes differ - There are diff operations - Encoding changed (even if content is the same)

(&self)

Source from the content-addressed store, hash-verified

185 /// - There are diff operations
186 /// - Encoding changed (even if content is the same)
187 pub fn has_changes(&self) -> bool {
188 self.content_changed || self.old_encoding != self.new_encoding
189 }
190
191 /// Check if only encoding changed (content bytes identical).
192 pub fn encoding_only_change(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected