Create an input for a deleted file.
(path: String, inode: Inode, position: Position<NodeId>)
| 111 | |
| 112 | /// Create an input for a deleted file. |
| 113 | pub fn deleted(path: String, inode: Inode, position: Position<NodeId>) -> Self { |
| 114 | Self { |
| 115 | path, |
| 116 | full_path: PathBuf::new(), |
| 117 | kind: FileRecordKind::Deleted, |
| 118 | old_content: Vec::new(), |
| 119 | inode: Some(inode), |
| 120 | position: Some(position), |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | /// Create an input for an added directory. |
| 125 | pub fn directory_added(path: String) -> Self { |
no outgoing calls