(root: &Path)
| 2279 | } |
| 2280 | |
| 2281 | fn enroll_via_config(root: &Path) { |
| 2282 | let config = root.join(".atomic").join("config.toml"); |
| 2283 | let mut content = std::fs::read_to_string(&config).unwrap_or_default(); |
| 2284 | content.push_str("\n[git.shim]\nenabled = true\n"); |
| 2285 | std::fs::write(&config, content).unwrap(); |
| 2286 | } |
| 2287 | |
| 2288 | fn write_aligned_checkpoint(root: &Path, git: &GitRepository) { |
| 2289 | let head = git.head().unwrap().target().unwrap(); |