pub fn push_once(
git: &PushGit,
landed_oid: &str,
err: &mut dyn Write,
) -> Result<AutoPushResult, SingleFlightError>Expand description
What:
Push a landed commit’s branch once, with no coordination with other processes.
Why:
The service’s push consumer is the only pusher of the repositories it serves and coalesces pending pushes of one
branch into this single call, so it needs no lock; the output and the failure note are those of auto_push.
In TS you’d write (pseudocode):
const result = await pushOnce({ gitPath, cwd }, landedOid);