Count the number of changes stored on disk. This scans the entire changes directory and counts valid change files. # Example ```rust,ignore let count = store.count_changes()?; println!("Repository has {} changes", count); ```
(&self)
| 546 | /// println!("Repository has {} changes", count); |
| 547 | /// ``` |
| 548 | pub fn count_changes(&self) -> ChangeStoreResult<usize> { |
| 549 | let mut count = 0; |
| 550 | for result in self.iter_changes() { |
| 551 | result?; |
| 552 | count += 1; |
| 553 | } |
| 554 | Ok(count) |
| 555 | } |
| 556 | |
| 557 | /// Clear the in-memory cache. |
| 558 | /// |
nothing calls this directly
no test coverage detected