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

Function record

atomic-repository/tests/effective_history_test.rs:23–32  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

21}
22
23fn record(repo: &Repository, message: &str) -> Hash {
24 let header = ChangeHeader::builder()
25 .message(message)
26 .author(Author::new("Test", Some("test@example.com")))
27 .build();
28 *repo
29 .record(header, RecordOptions::default())
30 .expect("record")
31 .hash()
32}
33
34/// A draft view's `effective_history` must include its shared base's changes,
35/// ordered base-first, while `log` on the draft shows only its own changes.

Calls 5

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

Tested by

no test coverage detected