Skip to main content

run_query

Function run_query 

Source
pub fn run_query(
    git: &PushGit,
    arguments: &[OsString],
) -> Result<QueryOutput, SingleFlightError>
Expand description

What: Run a read-only Git query with its own deadline and capture its streams separately. Why: A query that never returns would hold the caller, and the push lock behind it, for good.

In TS you’d write (pseudocode):

await nanoSpawn(gitPath, args, { cwd, signal: AbortSignal.timeout(deadlineMs) })