MCPcopy Index your code
hub / github.com/alt-art/commit / commit

Function commit

src/commit.rs:30–40  ·  view source on GitHub ↗
(commit_message: &str)

Source from the content-addressed store, hash-verified

28}
29
30pub fn commit(commit_message: &str) -> Result<()> {
31 let output = git_exec(&["commit", "-m", commit_message])?;
32 std::io::stdout().write_all(&output.stdout)?;
33 std::io::stderr().write_all(&output.stderr)?;
34 exit(
35 output
36 .status
37 .code()
38 .ok_or_else(|| anyhow!("Signal terminated"))?,
39 );
40}
41
42pub fn check_staged_files() -> Result<()> {
43 let output = git_exec(&["diff", "--cached", "--quiet"])?;

Callers 1

mainFunction · 0.85

Calls 1

git_execFunction · 0.85

Tested by

no test coverage detected