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

Function record

atomic-cli/tests/review_comparison_passes.rs:13–26  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

11use std::{path::Path, process::Command};
12
13fn record(repo: &Repository) -> Hash {
14 *repo
15 .record(
16 repo.require_working_copy_id().unwrap(),
17 ChangeHeader::new("comparison passes fixture"),
18 RecordOptions::new()
19 .with_all(true)
20 .save_to_store(true)
21 .apply_after_record(true)
22 .enrich_kg(false),
23 )
24 .unwrap()
25 .hash()
26}
27fn add(repo: &Repository, path: &str, text: &str) {
28 let full = repo.root().join(path);
29 std::fs::create_dir_all(full.parent().unwrap()).unwrap();

Calls 8

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

Tested by

no test coverage detected