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

Function write_config

atomic-repository/src/repository/project_tree.rs:1838–1841  ·  view source on GitHub ↗
(root: &Path, text: &str)

Source from the content-addressed store, hash-verified

1836 }
1837
1838 fn write_config(root: &Path, text: &str) {
1839 std::fs::create_dir_all(root.join(".atomic")).unwrap();
1840 std::fs::write(root.join(".atomic/config.toml"), text).unwrap();
1841 }
1842
1843 let resolve = |git: &git2::Repository| {
1844 ExclusionPolicy::resolve_for_git(git).expect("resolution must not fail")

Calls 2

writeFunction · 0.50
unwrapMethod · 0.45