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

Function record

atomic-repository/tests/span_storage_guard.rs:9–22  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

7use std::path::Path;
8
9fn record(repo: &Repository, message: &str) -> atomic_core::Hash {
10 *repo
11 .record(
12 repo.require_working_copy_id().unwrap(),
13 ChangeHeader::new(message),
14 RecordOptions::new()
15 .paths(vec!["large.txt"])
16 .with_all(true)
17 .save_to_store(true)
18 .apply_after_record(true),
19 )
20 .unwrap()
21 .hash()
22}
23
24fn graph_rows(repo: &Repository) -> (u64, u64) {
25 let db = repo.pristine().shared_database().unwrap();

Callers 1

storage_guardFunction · 0.70

Calls 8

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

Tested by

no test coverage detected