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

Function init

atomic-cli/tests/it/graph_only_export_cb9b_test.rs:106–110  ·  view source on GitHub ↗
(root: &Path, home: &Path)

Source from the content-addressed store, hash-verified

104}
105
106fn init(root: &Path, home: &Path) {
107 fs::create_dir_all(home).unwrap();
108 git(root, &["init", "-q", "-b", "main"]);
109 fs::write(root.join(".gitignore"), b".atomic/\n.vault/\n").unwrap();
110}
111
112/// Delete every physical file under `root` except `.git`/`.atomic`, so any
113/// subsequent content read can only come from the recorded graph.

Calls 3

gitFunction · 0.70
writeFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected