Add a file status entry.
(&mut self, entry: FileStatusEntry)
| 549 | |
| 550 | /// Add a file status entry. |
| 551 | pub fn add_entry(&mut self, entry: FileStatusEntry) { |
| 552 | let index = self.entries.len(); |
| 553 | self.path_index.insert(entry.path.clone(), index); |
| 554 | self.entries.push(entry); |
| 555 | } |
| 556 | |
| 557 | /// Add an entry, replacing any existing entry for the same path. |
| 558 | /// |