MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / commit_files_async

Function commit_files_async

crates/flowtrace-cli/src/git.rs:157–164  ·  view source on GitHub ↗
(root: PathBuf, msg: String, files: Vec<String>)

Source from the content-addressed store, hash-verified

155}
156
157pub async fn commit_files_async(root: PathBuf, msg: String, files: Vec<String>) -> Result<()> {
158 tokio::task::spawn_blocking(move || {
159 let refs: Vec<&str> = files.iter().map(String::as_str).collect();
160 commit_files(&root, &msg, &refs)
161 })
162 .await
163 .context("git task panicked")?
164}
165
166pub async fn init_async(root: PathBuf) -> Result<()> {
167 tokio::task::spawn_blocking(move || init(&root))

Callers 1

createFunction · 0.85

Calls 1

commit_filesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…