def ignore.put

ezx@1.11.0.0 · src/add/plan.bend:537

import ezx@1.11.0.0/src/add/plan.bend as Plan
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

537# `.gitignore` written ahead of the rest when the allowlist changes it
538def ignore.put(same: Bool, +next: String, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
539  match same:
540    case True{}:
541      rest
542    case False{}:
543      P.Write{A.ignore.file(), next} <> rest

Uses (5)

Used by (1)