Skip to main content

push_once

Function push_once 

Source
pub fn push_once(
    git: &PushGit,
    branch_ref: &str,
    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.

In TS you’d write (pseudocode):

const result = await pushOnce({ gitPath, cwd }, landedOid);