The most recent change hash on the current view.
(repo: &atomic_repository::Repository)
| 328 | |
| 329 | /// The most recent change hash on the current view. |
| 330 | fn latest_change_hash(repo: &atomic_repository::Repository) -> atomic_core::Hash { |
| 331 | let history = repo |
| 332 | .log(atomic_repository::HistoryOptions::default()) |
| 333 | .expect("view history"); |
| 334 | history |
| 335 | .into_iter() |
| 336 | .next() |
| 337 | .map(|entry| entry.hash) |
| 338 | .expect("at least one recorded change") |
| 339 | } |
no test coverage detected