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

Function git_commit

atomic-cli/tests/it/git_import_cb9c_test.rs:144–148  ·  view source on GitHub ↗
(root: &Path, message: &str)

Source from the content-addressed store, hash-verified

142}
143
144fn git_commit(root: &Path, message: &str) -> String {
145 git(root, &["add", "-A", "--"]);
146 git(root, &["commit", "-q", "-m", message]);
147 git(root, &["rev-parse", "HEAD"])
148}
149
150fn open_repo(root: &Path) -> atomic_repository::Repository {
151 atomic_repository::Repository::open(root).unwrap()

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected