pub fn query_deadline(environment: &[(OsString, OsString)]) -> DurationExpand description
What: The deadline of a query: the push deadline, but never more than the ceiling. Why: One setting bounds every Git child of the auto-push, and a long push deadline must not stretch queries.
In TS you’d write (pseudocode):
Math.min(pushDeadlineMs(env), QUERY_CEILING_MS)