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

Function record

atomic-repository/src/repository/content.rs:1655–1665  ·  view source on GitHub ↗
(repo: &Repository, message: &str)

Source from the content-addressed store, hash-verified

1653 use atomic_core::pristine::MutTxnT;
1654
1655 fn record(repo: &Repository, message: &str) {
1656 repo.record(
1657 repo.require_working_copy_id().unwrap(),
1658 ChangeHeader::new(message),
1659 crate::RecordOptions::new()
1660 .with_all(true)
1661 .save_to_store(true)
1662 .apply_after_record(true),
1663 )
1664 .unwrap();
1665 }
1666
1667 fn seed() -> (tempfile::TempDir, Repository, Inode, Position<NodeId>) {
1668 let dir = tempfile::tempdir().unwrap();

Calls 6

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