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

Function record

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

Source from the content-addressed store, hash-verified

1826 use atomic_core::pristine::MutTxnT;
1827
1828 fn record(repo: &Repository, message: &str) {
1829 repo.record(
1830 repo.require_working_copy_id().unwrap(),
1831 ChangeHeader::new(message),
1832 crate::RecordOptions::new()
1833 .with_all(true)
1834 .save_to_store(true)
1835 .apply_after_record(true),
1836 )
1837 .unwrap();
1838 }
1839
1840 fn seed() -> (tempfile::TempDir, Repository, Inode, Position<NodeId>) {
1841 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