Create a new entry with full details.
(
path: PathBuf,
status: FileStatus,
inode: Option<Inode>,
recorded_hash: Option<Hash>,
current_hash: Option<Hash>,
details: Option<String>,
)
| 326 | |
| 327 | /// Create a new entry with full details. |
| 328 | pub fn with_details( |
| 329 | path: PathBuf, |
| 330 | status: FileStatus, |
| 331 | inode: Option<Inode>, |
| 332 | recorded_hash: Option<Hash>, |
| 333 | current_hash: Option<Hash>, |
| 334 | details: Option<String>, |
| 335 | ) -> Self { |
| 336 | Self { |
| 337 | path, |
| 338 | status, |
| 339 | inode, |
| 340 | recorded_hash, |
| 341 | current_hash, |
| 342 | details, |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | /// Get the file path relative to the repository root. |
| 347 | pub fn path(&self) -> &Path { |
nothing calls this directly
no outgoing calls
no test coverage detected