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

Method diff_ops

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

Get the diff operations if available.

(&self)

Source from the content-addressed store, hash-verified

367
368 /// Get the diff operations if available.
369 pub fn diff_ops(&self) -> Option<&[DiffOp]> {
370 match self {
371 Self::Modified { diff_ops, .. } => Some(diff_ops),
372 Self::Moved {
373 diff_ops: Some(ops),
374 ..
375 } => Some(ops),
376 _ => None,
377 }
378 }
379
380 /// Check if this change involves content modification.
381 pub fn has_content_change(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected