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

Method added

atomic-repository/src/parallel_record/mod.rs:83–92  ·  view source on GitHub ↗

Create an input for a newly added file.

(path: String, full_path: PathBuf)

Source from the content-addressed store, hash-verified

81impl FileRecordInput {
82 /// Create an input for a newly added file.
83 pub fn added(path: String, full_path: PathBuf) -> Self {
84 Self {
85 path,
86 full_path,
87 kind: FileRecordKind::Added,
88 old_content: Vec::new(),
89 inode: None,
90 position: None,
91 }
92 }
93
94 /// Create an input for a modified file.
95 pub fn modified(

Callers 1

Calls

no outgoing calls

Tested by 1