Run.answer.refs: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 318-322 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=318&end_line=322 import Base import ezx@1.11.0.0/src/share/say.bend as Say import ezx@1.11.0.0/src/lock/up.bend as Up # the refs a ref could name: a tag, its peeled form, and a branch, all at # once, because which of them exists is the question def answer.refs(+url: String, +ref: String) -> IO(Up.Answer): git.said(Say.resolving.at(url), ["git", "ls-remote", url, "refs/tags/" ++ ref, "refs/tags/" ++ ref ++ "^{}", "refs/heads/" ++ ref]) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO 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/lock/run.bend&name=git.said https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/up.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/say.bend&name=resolving.at