pub fn run_git(dir: &Path, args: &[&str]) -> Result<String>Expand description
Run git -C <dir> <args>, returning stdout verbatim on success or a
GwmError::CommandFailed carrying the verb and git’s stderr on a
non-zero exit (or the spawn error if git could not be launched).
This is the single shell-out helper for the read-side git invocations
(sidebar previews, PR-body fillers). Read-only previews fire on every
selection change, so this variant is deliberately not logged — see
run_git_logged for the mutating-step counterpart used by gwm sync.
Callers that need trimming, truncation, or field parsing post-process the
returned String themselves.