def hash.kept.pick

ezx@1.11.0.0 · src/lock/up.bend:560

import ezx@1.11.0.0/src/lock/up.bend as Up
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/pkg/pkg.bend as K

560def hash.kept.pick(same: Bool, +pin: String, +full: String, +manifest: String) -> String:
561  match same:
562    case True{}:
563      full
564    case False{}:
565      +bare = hash.of(K.manifest.lines(K.bare(L.manifest.files(String.lines(manifest)))))
566      hash.kept.or(String.eq(bare, pin), bare, full)

Uses (9)

Used by (1)