Documentation
¶
Overview ¶
Package gitexec is the one place in the repo that shells out to `git`. Every caller used to carry its own copy of this ~15-line helper (changed, worktrees, doctor, gitclone, packagist, composer); this collapses them into one leaf package (stdlib only, so nothing can end up depending on it cyclically) that they all import instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run runs `git [-C root] args...` and returns raw, untrimmed stdout. root is omitted from the command line (no `-C`) when empty — load-bearing for gitclone's `clone`, which has no directory to `-C` into yet. On failure the returned error wraps git's own stderr, so callers surface git's actual complaint (auth, 404, not-a-repo) rather than a bare exit status.
Types ¶
This section is empty.