pub fn git_output(
git: &PushGit,
arguments: &[OsString],
) -> Result<String, SingleFlightError>Expand description
What:
Run a read-only Git query and return its trimmed standard output.
Result<A, B> is either the output or a failure.
Why:
Any failed query is a coordination failure; it is never read as an answer.
In TS you’d write (pseudocode):
(await nanoSpawn(gitPath, args, { cwd })).stdout.trim();