def tip.head.rows

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

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
import ezx@1.11.0.0/src/git/git.bend as Git

150# the default branch, when no tag is semver-ish: the commit HEAD names, and
151# the branch its symref names, which is recorded as the ref followed
152def tip.head.rows(+rows: List<&2, Git.Row>, +world: A.World) -> Tip:
153  Bool.pick(Tip, String.is_empty(Git.tip.branch(rows)),
154    TipNo{"ez: " ++ A.url(world) ++
155      " has no semver-ish tag and its HEAD names no branch; name a ref to pin"},
156    tip.found(Git.tip.rev(rows), "ez: " ++ A.url(world) ++ " has no HEAD"))

Uses (11)

Used by (1)