def ignore.put
import ezx@1.11.0.0/src/remove/plan.bend as Planimport 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