def ignore.put

ezx@1.11.0.0 · src/add/hub.bend:285

import ezx@1.11.0.0/src/add/hub.bend as Hub
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/lock/plan.bend as P

285# `.gitignore` written ahead of the rest when the allowlist changes it
286def ignore.put(same: Bool, +next: String, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
287  match same:
288    case True{}:
289      rest
290    case False{}:
291      P.Write{A.ignore.file(), next} <> rest

Uses (5)

Used by (1)