pub fn run_query(
git: &PushGit,
arguments: &[OsString],
) -> Result<QueryOutput, SingleFlightError>Expand description
What: Run a read-only Git query that is ended only when it shows no sign of work, and capture its streams separately. Why: A query that never returns would hold the caller, and the service’s push behind it, for good.
In TS you’d write (pseudocode):
await nanoSpawn(gitPath, args, { cwd, signal: quietFor(windowMs) })