def hashes.put
import ezx@1.11.0.0/src/ledger/ignore.bend as Ignoreimport Base
126# the hash an allowlist line names, in front of the rest
127def hashes.put(what: Rule, rest: List<&2, String>) -> List<&2, String>:
128 match what:
129 case Allow{h}:
130 h <> rest
131 case Other{}:
132 rest
133 case Dir{}:
134 rest
135 case Star{}:
136 rest
137 case Lib{}:
138 rest
139 case Pkgs{}:
140 rest