pub(crate) fn git_capture(dir: &Path, args: &[&str]) -> Result<String, String>Expand description
Runs git in dir and returns its trimmed stdout.
Failure carries git’s own stderr rather than a paraphrase. Every error this can hit – not a repository, no such remote, no upstream – already has a message git words better than a wrapper would, and the contributor is going to fix it with git.