Git.tip.branch: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/git/git.bend as Git Lines 225-231 of ezx@1.11.0.0/src/git/git.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/git/git.bend&start_line=225&end_line=231 import Base # the branch HEAD is, or "" when the remote did not say def tip.branch(rs: List<&2, Row>) -> String: match rs: case []: "" case +h <> t: tip.step(String.is_empty(tip.branch.at(h)), tip.branch.at(h), _u => tip.branch(t)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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/git/git.bend&name=Row https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=tip.branch.at https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=tip.step