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

Function record_all

atomic-agent/src/record/tests.rs:1919–1934  ·  view source on GitHub ↗
(
        repo: &atomic_repository::Repository,
        wc: atomic_core::WorkingCopyId,
        message: &str,
    )

Source from the content-addressed store, hash-verified

1917 let _git = git2::Repository::init(repo_root).unwrap();
1918
1919 fn record_all(
1920 repo: &atomic_repository::Repository,
1921 wc: atomic_core::WorkingCopyId,
1922 message: &str,
1923 ) {
1924 let header = atomic_core::change::ChangeHeader::new(message);
1925 repo.record(
1926 wc,
1927 header,
1928 atomic_repository::record::RecordOptions::new()
1929 .with_all(true)
1930 .save_to_store(true)
1931 .apply_after_record(true),
1932 )
1933 .unwrap();
1934 }
1935 fn add(repo: &atomic_repository::Repository, wc: atomic_core::WorkingCopyId, path: &str) {
1936 repo.add(
1937 wc,

Calls 5

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

Tested by

no test coverage detected