def name.held

ezx@1.11.0.0 · src/fetch/plan.bend:544

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base

544# a names file that was there, against the lock's hash. bend trims the file
545# before it reads the hash, and so does this.
546def name.held(same: Bool, +nv: String, +hash: String, +was: String) -> Nm:
547  match same:
548    case True{}:
549      NmKeep{}
550    case False{}:
551      NmPut{nv, hash, was}

Uses (3)

Used by (1)