Expand description
The shared constructor every production git / gh spawn goes
through.
GIT_DIR / GIT_WORK_TREE / GIT_COMMON_DIR override -C and
current_dir outright, so without the scrub a forge launched from
a git hook, a git rebase --exec, or any shell that exported them
answers every question about every repo from one foreign repo -
at exit 0, with nothing in the output to say so. Positioning the
process (-C for git, current_dir for gh) and args stay with
the call site; nothing there may set a repo-location variable.
Re-exports§
Enums§
- SshCommand 🔒
- Whether forge builds the ssh command for a child, or the checkout does.
Constants§
- AMBIENT_
IDENTITY_ 🔒VARS - The environment variables
ghreads for auth, in its own precedence order; GITHUB_PAT_TOKEN is not one of them, but the environment that carries the hazard declares it beside the two that are.
Functions§
- clear_
git_ 🔒point - Drop a directory’s pointer, back to the machine’s
git. - command 🔒
- A
git/ghspawn with the ambient repo-location env scrubbed, for synchronous callers anywhere in the crate (the plugin rollback’s marketplace-clone git steps included). - gh_
tokio_ 🔒command - A
ghspawn for one project’s own work:command’s scrub, the ambient identity removed, then the project’s declaredenvapplied - so a project that declares its own token acts as that project, and one that declares none falls back to gh’s own login rather than silently to the server’s environment. - git_
programs 🔒 - network_
tokio_ 🔒git_ command - A
gitchild that may reach a remote. - point_
git_ 🔒at - Point every
gitspawn positioned atcwdatprogram, for this process’s tests and for a crate whose fixtures build on thetestingfeature. Keyed by directory so parallel cases never run the machine’sgitthrough another case’s wrapper. - test_
git_ 🔒program - tokio_
command 🔒 - The
commandvariant async callers await; the scrub rides the std -> tokio conversion. - tokio_
git_ 🔒command - A
gitspawn positioned atcwd.