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

Function git_commit

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

Source from the content-addressed store, hash-verified

103}
104
105fn git_commit(root: &Path, message: &str) -> String {
106 git(root, &["add", "."]);
107 git(root, &["commit", "-q", "-m", message]);
108 git(root, &["rev-parse", "HEAD"])
109}
110
111/// Run a Git command with stdin and return trimmed stdout (used for
112/// plumbing like `commit-tree`, whose stdin carries the commit message).

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected