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

Method new

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

Create new options with defaults. Default configuration: - Algorithm: Myers - check_mtime: true - detect_moves: true - detect_encoding_changes: true - detect_permission_changes: true - prefix: "" (all files) - max_diff_size: Some(10MB) - force_rediff: false # Example ```rust use atomic_core::record::DetectOptions; let opts = DetectOptions::new(); assert!(opts.check_mtime); assert!(opts.detect_

()

Source from the content-addressed store, hash-verified

164 /// assert!(opts.detect_moves);
165 /// ```
166 pub fn new() -> Self {
167 Self::default()
168 }
169
170 /// Set the diff algorithm.
171 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected