def local.same
import ezx@1.11.0.0/src/tool/plan.bend as Planimport Base
226# the commit a local path builds: HEAD, when `git status` answered and named
227# nothing, and the path is the top of its checkout. A path in a checkout
228# whose top is elsewhere may be ignored there, or hold files the commit does
229# not; either way it is no commit (EZ-TOOL-3).
230def local.same(same: Bool, +head: String) -> String:
231 match same:
232 case True{}:
233 head
234 case False{}:
235 ""