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

Function git_commit

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

Source from the content-addressed store, hash-verified

65}
66
67fn git_commit(root: &Path, message: &str) -> String {
68 git(root, &["add", "-A"]);
69 git(root, &["commit", "-qm", message]);
70 git(root, &["rev-parse", "HEAD"])
71}
72
73/// Run a Git command with stdin bytes and return trimmed stdout (for
74/// plumbing like `hash-object --stdin`).

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected