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

Method empty

atomic-core/src/output/repo/file.rs:375–377  ·  view source on GitHub ↗

Create an empty result (for testing or dry-run). # Arguments `path` - File path `inode` - File inode # Example ```rust use atomic_core::output::repo::FileOutputResult; use atomic_core::types::Inode; let result = FileOutputResult::empty("src/lib.rs", Inode::ROOT); assert_eq!(result.path, "src/lib.rs"); assert_eq!(result.bytes_written, 0); ```

(path: impl Into<String>, inode: Inode)

Source from the content-addressed store, hash-verified

373 /// assert_eq!(result.bytes_written, 0);
374 /// ```
375 pub fn empty(path: impl Into<String>, inode: Inode) -> Self {
376 Self::new(path, inode)
377 }
378
379 /// Add a conflict to the result.
380 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected