pub fn stdout_raw_or_why(args: &[&str]) -> Result<Vec<u8>, String>
As stdout_raw, but a failure keeps git’s own reason: its stderr, trimmed (safe.directory, “not a git repository”), or why it could not be started.
stdout_raw
safe.directory