Create an input for a newly added file.
(path: String, full_path: PathBuf)
| 81 | impl 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( |
no outgoing calls