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

Method should_diff

atomic-core/src/record/workflow/options.rs:354–362  ·  view source on GitHub ↗

Check if content should be diffed based on current options. This considers force_rediff and other flags. # Arguments `mtime_unchanged` - Whether the file's mtime is unchanged # Returns `true` if the file should be diffed.

(&self, mtime_unchanged: bool)

Source from the content-addressed store, hash-verified

352 ///
353 /// `true` if the file should be diffed.
354 pub fn should_diff(&self, mtime_unchanged: bool) -> bool {
355 if self.force_rediff {
356 return true;
357 }
358 if self.check_mtime && mtime_unchanged {
359 return false;
360 }
361 true
362 }
363}
364
365impl Default for WorkflowOptions {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected