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