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

Function log_hashes

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

Source from the content-addressed store, hash-verified

42}
43
44fn 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

Calls 4

collectMethod · 0.45
into_iterMethod · 0.45
logMethod · 0.45
viewMethod · 0.45

Tested by

no test coverage detected