Documentation ¶
Overview ¶
Package git contains all the Git operations that can be applied to asdf Git repositories like the plugin index repo and individual asdf plugins.
Index ¶
Constants ¶
View Source
const DefaultRemoteName = "origin"
DefaultRemoteName for Git repositories in asdf
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
Repo is a struct to contain the Git repository details
type Repoer ¶
type Repoer interface { Clone(pluginURL, ref string) error Head() (string, error) RemoteURL() (string, error) Update(ref string) (string, string, string, error) }
Repoer is an interface for operations that can be applied to asdf plugins. Right now we only support Git, but in the future we might have other mechanisms to install and upgrade plugins. asdf doesn't require a plugin to be a Git repository when asdf uses it, but Git is the only way to install and upgrade plugins. If other approaches are supported this will be extracted into the `plugins` module.
Click to show internal directories.
Click to hide internal directories.