def tip.rev
import ezx@1.11.0.0/src/git/git.bend as Gitimport Base
194# the commit HEAD names, from the rows `ls-remote --symref` wrote
195def tip.rev(rs: List<&2, Row>) -> String:
196 match rs:
197 case []:
198 ""
199 case +h <> t:
200 tip.step(String.is_empty(tip.rev.at(h)), tip.rev.at(h), _u => tip.rev(t))