~/bend-docscommunity

src/git/git.bend fails

raw source on the hub · import ezx@1.7.0.0/src/git/git.bend as Git

git/git: what ez asks of git, and how it reads the answers. The decisions are pure functions over what git ls-remote printed and what a checkout's ez.toml says: which tag ez add pins (choose), what a named ref names (exact), the default branch (tip.*), whether a ref is already a commit (is_rev), and a package's entry and name (entry.*, called.*). The planners (add/plan.bend, lock/up.bend) make them; the commands that run git are the interpreters', which clone, weigh and ask about ancestry, and they live in git/exec.bend, since they reach foreign code a law may not import.

Nothing here reimplements git. Bend links no TLS and Base has no readdir, so the programs that already speak the protocol are run instead, through the one process effect the rest of ez uses: arguments execvp'd, no shell between.

6 imports
import Base
import ../io/file.bend as F
import ../toml/toml.bend as T
import ../ledger/manifest.bend as M
import ../pkg/pkg.bend as K
import ../pkg/path.bend as P