gatelineAPI reference
  • from is the commit the dispatch's branch starts at. The engine passes the intent commit that dispatched the job (#547): the job then works on exactly the state its dispatch was derived from, whatever has landed on the run branch since. Without it the branch would start wherever the run branch stands when git worktree add runs, which for the second of two jobs launched in one tick can be after the first has finished and folded. That is a timing race, and it decided what the second agent saw. The fold rebases onto the run tip of its own moment either way. Absent, the run branch's current tip is used.

    Parameters

    • repoDir: string
    • runBranch: string
    • branch: string
    • seed: SeedOptions = {}
    • from: string = runBranch

    Returns Promise<TaskCheckout>