pub type GitFn<'a> = dyn Fn(Option<&Path>, &[&str]) -> Result<Option<String>, String> + 'a;Expand description
A git command for move_keys: (GIT_DIR or None, args) →
Ok(Some(stdout)) on exit 0, Ok(None) on exit 1 (git’s “nothing
matched”), Err on any other end. A seam, so the tests drive a scratch
repository and main composes the real one.