Documentation
¶
Overview ¶
git has functions for interacting with git remotes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFile ¶
GetFile fetches a file from a git repository at a specific commit. Works with GitHub and GitLab repositories.
func GetLatestCommit ¶
GetLatestCommit returns the latest commit hash from a git URL.
Returns the full 40-character commit hash.
func ListFiles ¶
ListFiles returns a list of files at the root of a git repository at a specific commit. Uses the GitHub/GitLab API to list directory contents.
func ResolveCommit ¶ added in v0.4.0
ResolveCommit resolves an abbreviated commit hash to a full hash. If the commit is already a full hash (40 characters), it returns it unchanged. Uses the GitHub/GitLab API to resolve the hash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.