def git.weighed.go
import ezx@1.11.0.0/src/lock/world.bend as Worldimport Base
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/hub/hub.bend as Web
277# a git package's bytes once its checkout was weighed. A tree read from
278# BEND_LIB is judged as a clone that weighed to the narHash the ledger
279# records, so the same bytes lock the same way whichever way they came.
280def git.weighed.go(same: Bool, +why: String, +hash: String, +manifest: String, +ss: List<&2, String>) -> Verdict:
281 match same:
282 case True{}:
283 git.rule(Web.matches(L.want(hash), manifest), hash, manifest, ss)
284 case False{}:
285 No{why}