Plan.default.ref: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/plan.bend as Plan Lines 108-113 of ezx@1.11.0.0/src/add/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/plan.bend&start_line=108&end_line=113 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 # the ref `ez add` pins when none was asked for: the tag `Git.choose` takes # from every tag on the remote, the greatest release, else the greatest # pre-release; else the branch HEAD's symref names (EZ-RES-1) def default.ref(+world: A.World) -> String: +chosen = Git.choose(Git.tag.names(rows(world, QTags{}))) Bool.pick(String, String.is_empty(chosen), Git.tip.branch(rows(world, QHead{})), chosen) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=Q https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=rows https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=choose https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=tag.names https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=tip.branch