Skip to main content

Module git

Module git 

Source
Expand description

Git source adapter — strategy and public API.

Delegates to git_cli for git CLI operations and archive for GitHub archive download/extraction.

Structs§

FetchOptions
Options controlling git fetch behavior.

Functions§

fetch
fetch_commit
Fetch a git source at an exact locked commit without resolving a live ref first.
is_github_host
Return true when the URL host resolves to github.com.
list_versions
ls_remote_head
Run git ls-remote <url> HEAD and return the default-branch SHA.
ls_remote_tags
Run git ls-remote --tags <url> and parse semver tags.
url_to_dirname
Normalize a git URL to a filesystem-safe directory name.