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

Function commit_all

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

Source from the content-addressed store, hash-verified

51}
52
53fn commit_all(root: &Path, message: &str) -> String {
54 git_ok(root, &["add", "--all"]);
55 git_ok(root, &["commit", "-q", "-m", message]);
56 git_text(root, &["rev-parse", "HEAD"])
57}
58
59fn git_object(root: &Path, spec: &str) -> Option<Vec<u8>> {
60 let output = git(root, &["show", spec]);

Calls 2

git_okFunction · 0.70
git_textFunction · 0.70

Tested by

no test coverage detected