def tip.rev.pick

ezx@1.11.0.0 · src/git/git.bend:181

import ezx@1.11.0.0/src/git/git.bend as Git
import Base

181# a HEAD row's commit, or "" when the row is the symref or not HEAD
182def tip.rev.pick(head: Bool, hex: Bool, rev: String) -> String:
183  match head:
184    case False{}:
185      ""
186    case True{}:
187      tip.rev.hex(hex, rev)

Uses (3)

Used by (1)