Git.exact: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/git/git.bend as Git Lines 150-157 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=150&end_line=157 import Base # the commit a ref names, from the rows the remote answered with. A tag comes # first, through its peeled `^{}` row when it is annotated, since that row is # the commit and the other is the tag object; then a branch of that name. No # other row is ever picked, so a tag and a branch that share a name resolve to # the tag, and `main` never resolves to `feature/main`. def exact(+rs: List<&2, Row>, +ref: String) -> String: or_else(named(rs, "refs/tags/" ++ ref ++ "^{}"), or_else(named(rs, "refs/tags/" ++ ref), named(rs, "refs/heads/" ++ ref))) 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.append 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=named https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/git/git.bend&name=or_else