pub fn git_silent(args: &[&str]) -> Option<String>Expand description
Run a git command, returning stdout on success or None on failure.
Use for optional checks where failure is not an error condition.
Args:
args: Arguments to pass to git.
Usage:
ⓘ
if let Some(sha) = git_silent(&["rev-parse", "--verify", "HEAD"]) { ... }