def ref.at

ezx@1.11.0.0 · src/ws/pin.bend:32

import ezx@1.11.0.0/src/ws/pin.bend as Pin
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

32# a ref given against what the workspace records for the source, if anything
33def ref.at(src: M.Source, +url: String, +ref: String) -> Ref:
34  match src:
35    case M.Hub{_nv}:
36      Given{ref}
37    case M.Git{_u, +rev, +tag, _o, _n, _v}:
38      ref.pinned(url, rev, tag, ref)
39    case M.Member{_p, _n}:
40      Given{ref}

Uses (4)

Used by (1)