Function
log_hashes
(repo: &Repository, view: &str)
Source from the content-addressed store, hash-verified
| 42 | } |
| 43 | |
| 44 | fn log_hashes(repo: &Repository, view: &str) -> Vec<Hash> { |
| 45 | repo.log(HistoryOptions::default().view(view)) |
| 46 | .expect("log") |
| 47 | .into_iter() |
| 48 | .map(|e| e.hash) |
| 49 | .collect() |
| 50 | } |
| 51 | |
| 52 | /// Splitting independent changes out of the middle of a view is clean: the |
| 53 | /// source keeps the survivors, the draft owns the extracted changes. |
Callers
nothing calls this directly
Tested by
no test coverage detected