Skip to main content

Module git

Module git 

Source
Expand description

Git hosts (GitHub, GitHub Enterprise, GitLab, Bitbucket, any https git host): where a repository’s archive lives, and the credential for exactly that host: a token variable, else what git credential fill returns.

Structs§

Host

Enums§

Kind

Functions§

credential_fill
git credential fill for one origin: what the user’s credential helpers hold for that host. Never prompts; gives up after 15 seconds.
credentials
The credential for host, bound to its origin(s): a token variable, then (when fill) the user’s git credential helpers.
git_header
The value of the Authorization header for the smart-HTTP endpoint: a bare token becomes Basic with the host’s conventional user name.
kind_of
parse_repo_url
A repository URL (git+https://h/o/r.git, https://h/o/r, git@h:o/r.git, ssh://git@h/o/r) as its https origin and owner/name path. Only URLs that look like git repositories on a host other than github.com qualify.