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

Function init_git

atomic-cli/tests/it/git_shim_cb0d_test.rs:74–80  ·  view source on GitHub ↗
(root: &Path)

Source from the content-addressed store, hash-verified

72}
73
74fn init_git(root: &Path) -> GitRepository {
75 let repository = GitRepository::init(root).expect("init Git");
76 repository
77 .set_head("refs/heads/main")
78 .expect("set main HEAD");
79 repository
80}
81
82fn init_git_with_feature(root: &Path) -> (Oid, Oid) {
83 let repository = init_git(root);

Calls 1

initFunction · 0.70

Tested by

no test coverage detected