def tags.best

ezx@1.11.0.0 · src/lock/up.bend:922

import ezx@1.11.0.0/src/lock/up.bend as Up
import Base

922# the greatest semver-ish tag, else the default branch
923def tags.best(none: Bool, +best: String, +rs: List<&2, Reply>, +url: String) -> Named:
924  match none:
925    case False{}:
926      Named{best}
927    case True{}:
928      heads.said(printed(rs, Head{url}, "ls-remote " ++ url), url)

Uses (9)

Used by (1)