def head.rev

ezx@1.11.0.0 · src/tool/plan.bend:268

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/up.bend as Up
import ezx@1.11.0.0/src/git/git.bend as Git

268# the commit HEAD names, "" while it is not known
269def head.rev(said: Up.Said) -> String:
270  match said:
271    case Up.Said{text}:
272      Git.tip.rev(Git.rows(String.lines(text)))
273    case Up.Unsaid{_why}:
274      ""
275    case Up.Unasked{_ask}:
276      ""

Uses (5)

Used by (1)