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

Function record

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

Source from the content-addressed store, hash-verified

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

Calls 6

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

Tested by

no test coverage detected