Create an input for a modified file.
(
path: String,
full_path: PathBuf,
old_content: Vec<u8>,
inode: Inode,
position: Position<NodeId>,
)
| 93 | |
| 94 | /// Create an input for a modified file. |
| 95 | pub fn modified( |
| 96 | path: String, |
| 97 | full_path: PathBuf, |
| 98 | old_content: Vec<u8>, |
| 99 | inode: Inode, |
| 100 | position: Position<NodeId>, |
| 101 | ) -> Self { |
| 102 | Self { |
| 103 | path, |
| 104 | full_path, |
| 105 | kind: FileRecordKind::Modified, |
| 106 | old_content, |
| 107 | inode: Some(inode), |
| 108 | position: Some(position), |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /// Create an input for a deleted file. |
| 113 | pub fn deleted(path: String, inode: Inode, position: Position<NodeId>) -> Self { |
no outgoing calls