def rev.free
import ezx@1.11.0.0/src/tool/plan.bend as Planimport Base
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/ez/target.bend as Tgt
278# the commit of a free target
279def rev.free(pl: Tgt.Place, +world: TW.World) -> String:
280 match pl:
281 case Tgt.Bad{_why}:
282 ""
283 case Tgt.Local{p}:
284 loc.rev(loc(p, world))
285 case Tgt.Remote{url, _slug}:
286 head.rev(head.said(world, url))