def answer.refs

ezx@1.11.0.0 · src/lock/run.bend:318

import ezx@1.11.0.0/src/lock/run.bend as Run
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

318# the refs a ref could name: a tag, its peeled form, and a branch, all at
319# once, because which of them exists is the question
320def answer.refs(+url: String, +ref: String) -> IO(Up.Answer):
321  git.said(Say.resolving.at(url), ["git", "ls-remote", url, "refs/tags/" ++ ref,
322    "refs/tags/" ++ ref ++ "^{}", "refs/heads/" ++ ref])

Uses (7)

Used by (1)