def tag.of

ezx@1.11.0.0 · src/add/plan.bend:115

import ezx@1.11.0.0/src/add/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/add/world.bend as A

115# the tag or branch recorded, as a ref was given: none for a commit, the
116# default one for none, and the ref itself otherwise
117def tag.of(rev: Bool, empty: Bool, +world: A.World) -> String:
118  match rev:
119    case True{}:
120      ""
121    case False{}:
122      Bool.pick(String, empty, default.ref(world), A.ref(world))

Uses (6)

Used by (1)