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

Function record

atomic-repository/tests/view_manifest_test.rs:30–39  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

28}
29
30fn record(repo: &Repository, message: &str) -> Hash {
31 let header = ChangeHeader::builder()
32 .message(message)
33 .author(Author::new("Test", Some("test@example.com")))
34 .build();
35 *repo
36 .record(header, RecordOptions::default())
37 .expect("record")
38 .hash()
39}
40
41/// Build the canonical fixture: `dev` (shared) with two changes, and a
42/// draft `orange` forked from it with three more changes on top.

Callers 2

build_originFunction · 0.70

Calls 5

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

Tested by

no test coverage detected