(
root: &Path,
run_id: Option<&str>,
event: &str,
apply: impl FnMut(&mut flowtrace_core::state::RunState),
)
| 498 | } |
| 499 | |
| 500 | fn commit_run_event( |
| 501 | root: &Path, |
| 502 | run_id: Option<&str>, |
| 503 | event: &str, |
| 504 | apply: impl FnMut(&mut flowtrace_core::state::RunState), |
| 505 | ) -> Result<()> { |
| 506 | let id = mutate_run(root, run_id, apply)?; |
| 507 | let state_rel = format!("runs/{}/state.json", id); |
| 508 | git::commit_files( |
| 509 | root, |
| 510 | &git::run_event_commit_msg(&id, event), |
| 511 | &[state_rel.as_str()], |
| 512 | )?; |
| 513 | Ok(()) |
| 514 | } |
| 515 | |
| 516 | fn mutate_run( |
| 517 | root: &Path, |
no test coverage detected
searching dependent graphs…