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

Function record

atomic-repository/tests/view_split_test.rs:27–36  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

25}
26
27fn record(repo: &Repository, message: &str) -> Hash {
28 let header = ChangeHeader::builder()
29 .message(message)
30 .author(Author::new("Test", Some("test@example.com")))
31 .build();
32 *repo
33 .record(header, RecordOptions::default())
34 .expect("record")
35 .hash()
36}
37
38fn log_hashes(repo: &Repository, view: &str) -> Vec<Hash> {
39 repo.log(HistoryOptions::default().view(view))

Calls 5

authorMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45
hashMethod · 0.45
recordMethod · 0.45

Tested by

no test coverage detected