MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / log_hashes

Function log_hashes

atomic-repository/tests/view_split_test.rs:38–44  ·  view source on GitHub ↗
(repo: &Repository, view: &str)

Source from the content-addressed store, hash-verified

36}
37
38fn 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

Calls 3

logMethod · 0.80
into_iterMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected