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

Method has_content_change

atomic-core/src/record/detect.rs:381–391  ·  view source on GitHub ↗

Check if this change involves content modification.

(&self)

Source from the content-addressed store, hash-verified

379
380 /// Check if this change involves content modification.
381 pub fn has_content_change(&self) -> bool {
382 match self {
383 Self::Added { .. } => true,
384 Self::Modified { .. } => true,
385 Self::Deleted => true,
386 Self::Moved {
387 content_changed, ..
388 } => *content_changed,
389 Self::MetadataOnly { .. } => false,
390 }
391 }
392}
393
394// FILE CHANGE

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected