Count the number of changes stored in the repository. This scans the entire changes directory. # Example ```rust,ignore let count = repo.count_changes()?; println!("Repository has {} changes", count); ```
(&self)
| 1252 | /// println!("Repository has {} changes", count); |
| 1253 | /// ``` |
| 1254 | pub fn count_changes(&self) -> Result<usize, RepositoryError> { |
| 1255 | self.change_store |
| 1256 | .count_changes() |
| 1257 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 1258 | } |
| 1259 | |
| 1260 | /// Iterate over all change hashes stored in the repository. |
| 1261 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected