Skip to main content

Module git

Module git 

Source
Expand description

The git a migration reads the repository through.

Every call answers for the -C target alone: the variables a running hook exports are scrubbed, so an inherited GIT_DIR cannot redirect a call at another repository, and the locale is pinned to C, so the diagnostics stay untranslated.

Functionsยง

lines
The non-empty lines of one git call that must succeed.
raw_blob_ids
The blob id of the bytes at each of paths, read raw, with no filter applied, in the order given.
regular_blobs
The regular files rev holds among paths, each with its blob id: mode 100644 or 100755, never a symlink or a submodule.
run
One git call against target, its output whatever the status.
stdout
The stdout of one git call that must succeed.