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

Function init_git

atomic-cli/tests/it/git_wip_cb0b_test.rs:45–51  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

43}
44
45fn init_git(root: &Path) {
46 git_ok(root, &["init", "-q"]);
47 git_ok(root, &["symbolic-ref", "HEAD", "refs/heads/main"]);
48 git_ok(root, &["config", "user.name", "Atomic Test"]);
49 git_ok(root, &["config", "user.email", "atomic@example.com"]);
50 git_ok(root, &["config", "core.autocrlf", "false"]);
51}
52
53fn commit_all(root: &Path, message: &str) -> String {
54 git_ok(root, &["add", "--all"]);

Calls 1

git_okFunction · 0.70

Tested by

no test coverage detected