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

Function record

atomic-cli/tests/review_comparison.rs:7–18  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

5use std::{collections::BTreeSet, path::Path, process::Command};
6
7fn record(repo: &Repository) {
8 repo.record(
9 repo.require_working_copy_id().unwrap(),
10 ChangeHeader::new("comparison fixture"),
11 RecordOptions::new()
12 .with_all(true)
13 .save_to_store(true)
14 .apply_after_record(true)
15 .enrich_kg(false),
16 )
17 .unwrap();
18}
19fn write(repo: &Repository, path: &str, text: &str) {
20 let full = repo.root().join(path);
21 let exists = full.exists();

Calls 7

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

Tested by

no test coverage detected