MCPcopy Create free account
hub / github.com/Sigumaa/ojosama-commit / commit_to_git

Function commit_to_git

src/main.rs:124–137  ·  view source on GitHub ↗
(commit_message: &str)

Source from the content-addressed store, hash-verified

122}
123
124fn commit_to_git(commit_message: &str) -> Result<()> {
125 let status = Command::new("git")
126 .arg("commit")
127 .arg("-m")
128 .arg(commit_message)
129 .status()
130 .map_err(OjoError::GitIo)?;
131
132 if status.success() {
133 Ok(())
134 } else {
135 Err(OjoError::GitFailure)
136 }
137}

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected