def git.rule
ezx@1.11.0.0 · src/lock/world.bend:260
import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L
import ezx@1.11.0.0/src/pkg/pkg.bend as K
260
261
262
263
264
265
266def git.rule(named: Bool, +hash: String, +manifest: String, +ss: List<&2, String>) -> Verdict:
267 match named:
268 case True{}:
269 git.body(List.is_empty(&2, K.Item, L.manifest.files(String.lines(manifest))),
270 hash, manifest, ss)
271 case False{}:
272 +fs = L.manifest.files(String.lines(manifest))
273 +bs = K.bare(fs)
274 git.body(List.is_empty(&2, K.Item, bs), hash, K.manifest.lines(bs),
275 K.bare.srcs(fs, ss))