(root: &Path, home: &Path)
| 104 | } |
| 105 | |
| 106 | fn 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. |
no test coverage detected