(path: impl Into<String>, repository_bytes: Vec<u8>)
| 62 | |
| 63 | impl IndexManifestEntry { |
| 64 | pub fn present(path: impl Into<String>, repository_bytes: Vec<u8>) -> Self { |
| 65 | Self { |
| 66 | path: path.into(), |
| 67 | source_path: None, |
| 68 | state: IndexEntryState::Present { |
| 69 | repository_bytes: Some(repository_bytes), |
| 70 | mode: 0o644, |
| 71 | kind: InodeKind::Regular, |
| 72 | }, |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | pub fn delete(path: impl Into<String>) -> Self { |
| 77 | Self { |
nothing calls this directly
no outgoing calls
no test coverage detected