def said.rev
import ezx@1.11.0.0/src/tool/run.bend as Runimport Base
import ezx@1.11.0.0/src/git/git.bend as Git
61# the first line that is a commit, or ""
62def said.rev(ls: List<&2, String>) -> String:
63 match ls:
64 case []:
65 ""
66 case +h <> t:
67 said.next(Git.is_rev(h), h, _u => said.rev(t))