Add a file status entry.
(&mut self, entry: FileStatusEntry)
| 477 | |
| 478 | /// Add a file status entry. |
| 479 | pub fn add_entry(&mut self, entry: FileStatusEntry) { |
| 480 | let index = self.entries.len(); |
| 481 | self.path_index.insert(entry.path.clone(), index); |
| 482 | self.entries.push(entry); |
| 483 | } |
| 484 | |
| 485 | /// Get the status entry for a specific path. |
| 486 | pub fn get(&self, path: &Path) -> Option<&FileStatusEntry> { |