def ignore.put

ezx@1.11.0.0 · src/remove/plan.bend:122

import ezx@1.11.0.0/src/remove/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/lock/plan.bend as P

122# `.gitignore` written ahead of the rest when the allowlist changes it
123def ignore.put(same: Bool, +next: String, rest: List<&2, P.Effect>) -> List<&2, P.Effect>:
124  match same:
125    case True{}:
126      rest
127    case False{}:
128      P.Write{ignore.file(), next} <> rest

Uses (5)

Used by (1)