def co.clone

ezx@1.11.0.0 · src/tool/plan.bend:431

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/up.bend as Up

431# the checkout git gave, still to ask, or why there is none
432def co.clone(got: Up.Heard, ask: Up.Ask) -> Co:
433  match got:
434    case Up.Open{}:
435      CoWait{[], [ask]}
436    case Up.Heard{answer}:
437      match answer:
438        case Up.Cloned{_nar, fs}:
439          Laid{fs}
440        case Up.Miss{why}:
441          CoNo{why}
442        case _:
443          CoNo{"ez: a checkout was not answered with one"}

Uses (5)

Used by (1)