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

Function record

atomic-cli/tests/review_view.rs:8–21  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

6use std::{collections::BTreeSet, path::Path, process::Command};
7
8fn record(repo: &Repository, message: &str) -> String {
9 repo.record(
10 repo.require_working_copy_id().unwrap(),
11 ChangeHeader::new(message),
12 RecordOptions::new()
13 .with_all(true)
14 .save_to_store(true)
15 .apply_after_record(true)
16 .enrich_kg(false),
17 )
18 .unwrap()
19 .hash()
20 .to_base32()
21}
22fn write(repo: &Repository, path: &str, text: &str) {
23 let full = repo.root().join(path);
24 std::fs::create_dir_all(full.parent().unwrap()).unwrap();

Calls 9

enrich_kgMethod · 0.80
apply_after_recordMethod · 0.80
save_to_storeMethod · 0.80
to_base32Method · 0.45
hashMethod · 0.45
unwrapMethod · 0.45
recordMethod · 0.45
with_allMethod · 0.45

Tested by

no test coverage detected