def choose

ezx@1.11.0.0 · src/git/git.bend:754

import ezx@1.11.0.0/src/git/git.bend as Git
import Base

754# the tag `ez add` pins when no ref was asked for: a release beats every
755# pre-release, however much greater the pre-release's numbers are, and
756# within each class the greatest wins by `ord.ver`, the later of two equal
757# ones winning as `latest` has it. "" when no name is semver-ish.
758def choose(+names: List<&2, String>) -> String:
759  choose.go(String.is_empty(latest.rel(names)), latest.rel(names), latest(names))

Uses (6)

Used by (3)