MCPcopy Create free account
hub / github.com/amll-dev/amll-ttml-db / commit

Function commit

scripts/rebuild-folder/src/main.rs:144–153  ·  view source on GitHub ↗
(message: &str)

Source from the content-addressed store, hash-verified

142}
143
144fn commit(message: &str) -> Result<()> {
145 let result = std::process::Command::new("git")
146 .args(["commit", "-m", message])
147 .stdout(std::process::Stdio::inherit())
148 .stderr(std::process::Stdio::inherit())
149 .status()
150 .context("无法执行 git commit 命令")?;
151 anyhow::ensure!(result.success(), "git commit 命令执行失败");
152 Ok(())
153}
154
155fn push(branch: &str) -> Result<()> {
156 let result = std::process::Command::new("git")

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected