def ref.pinned

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

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

25# a ref given against the pin the workspace records for the source
26def ref.pinned(+url: String, +rev: String, +tag: String, +ref: String) -> Ref:
27  Bool.pick(Ref, String.is_empty(ref), Given{held(rev, tag)},
28    Bool.pick(Ref, Bool.or(String.eq(ref, tag), String.eq(ref, rev)), Given{ref},
29      Held{"ez: the workspace pins " ++ url ++ " at " ++ held(rev, tag) ++
30        "; move it for every member with ez lock --upgrade --package"}))

Uses (8)

Used by (1)