failurefunctionno test imports itfunction failure(out: Output): stringA call that did not end with 0, as one sentence: the last lines Git wrote, or its status.
The one place the library runs Git: every call is git with the repository named by its Git folder, the configuration of a computer that would change what a command does turned off (no signing, no hooks, no prompt, no pager), and the text of Git's messages in the language Git writes by default. A call that cannot start is a failed call, never a throw.
failurefunctionno test imports itfunction failure(out: Output): stringA call that did not end with 0, as one sentence: the last lines Git wrote, or its status.
Gittypeno test imports ittype Git = {
/** The Git folder, absolute: the repository itself for a bare one, `.git` for a working tree. */
readonly gitDir: string;
readonly bare: boolean;
/** The folder of the working tree, where there is one. */
readonly workTree?: string;
/** Runs `git <args>` and keeps its output as bytes. */
run(args: readonly string[], call?: Call): Promise<proc.Output>;
};A repository to run Git on.
openGitfunctionno test imports itfunction openGit(repo: string, program?: string): Promise<Result<Git, string>>The repository at a folder, or why Git cannot work there. The folder is the working tree, the Git folder or a bare repository.