def decide.head

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

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW

981# a pin's commit is the lock's; a free remote's is asked of its HEAD
982def decide.head(found: Src, +url: String, +world: TW.World) -> Verdict:
983  match found:
984    case Pin{_n, _u, _r, _o}:
985      decide.co(co(world), world)
986    case Free{_pl}:
987      decide.said(head.said(world, url), url, world)
988    case NoSrc{why}:
989      Stop{why}

Uses (8)

Used by (1)