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

Function enroll_via_config

atomic-cli/src/commands/git/shadow.rs:2281–2286  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

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();

Calls 2

writeFunction · 0.50
unwrapMethod · 0.45