World.git.rule: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/world.bend as World Lines 260-275 of ezx@1.11.0.0/src/lock/world.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/world.bend&start_line=260&end_line=275 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 # a git package's bytes under the rule its name was taken by. Since bend # 2.0.27 a package holds the LICENSE files beside its sources, and the walk # takes them along. A ledger written before names the same checkout without # them, and that package is the checkout's too: when the walk's manifest does # not hash to the name, the package without its LICENSE files is judged # instead, and locked when that is the one the name is the digest of. def git.rule(named: Bool, +hash: String, +manifest: String, +ss: List<&2, String>) -> Verdict: match named: case True{}: git.body(List.is_empty(&2, K.Item, L.manifest.files(String.lines(manifest))), hash, manifest, ss) case False{}: +fs = L.manifest.files(String.lines(manifest)) +bs = K.bare(fs) git.body(List.is_empty(&2, K.Item, bs), hash, K.manifest.lines(bs), K.bare.srcs(fs, ss)) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.is_empty https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.lines https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=manifest.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Verdict https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=git.body https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Item https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=bare https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=bare.srcs https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=manifest.lines