Documentation
¶
Index ¶
- type Repository
- func (r *Repository) CheckoutHead() *plugin_exec.Cmd
- func (r *Repository) CheckoutLFS() *plugin_exec.Cmd
- func (r *Repository) CheckoutSha() *plugin_exec.Cmd
- func (r *Repository) ConfigRemapSubmodule(name, url string) *plugin_exec.Cmd
- func (r *Repository) ConfigSSHCommand(sshKey string) *plugin_exec.Cmd
- func (r *Repository) ConfigSSLVerify(skipVerify bool) *plugin_exec.Cmd
- func (r *Repository) ConfigSafeDirectory() *plugin_exec.Cmd
- func (r *Repository) FetchLFS() *plugin_exec.Cmd
- func (r *Repository) FetchSource(ref string) *plugin_exec.Cmd
- func (r *Repository) FetchTags() *plugin_exec.Cmd
- func (r *Repository) Init() *plugin_exec.Cmd
- func (r *Repository) RemoteAdd() *plugin_exec.Cmd
- func (r *Repository) SubmoduleUpdate() *plugin_exec.Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { RemoteURL string RemoteSSH string Branch string CommitSha string CommitRef string Submodules map[string]string SubmoduleRemote bool SubmodulePartial bool SafeDirectory string WorkDir string IsEmpty bool Filter string Depth int }
func (*Repository) CheckoutHead ¶ added in v1.0.5
func (r *Repository) CheckoutHead() *plugin_exec.Cmd
CheckoutHead handles head checkout.
func (*Repository) CheckoutLFS ¶ added in v1.0.5
func (r *Repository) CheckoutLFS() *plugin_exec.Cmd
CheckoutLFS handles commit checkout.
func (*Repository) CheckoutSha ¶ added in v1.0.5
func (r *Repository) CheckoutSha() *plugin_exec.Cmd
CheckoutSha handles commit checkout.
func (*Repository) ConfigRemapSubmodule ¶ added in v1.0.5
func (r *Repository) ConfigRemapSubmodule(name, url string) *plugin_exec.Cmd
ConfigRemapSubmodule returns a git command that, when executed configures git to remap submodule urls.
func (*Repository) ConfigSSHCommand ¶ added in v1.0.5
func (r *Repository) ConfigSSHCommand(sshKey string) *plugin_exec.Cmd
ConfigSSHCommand sets custom SSH key.
func (*Repository) ConfigSSLVerify ¶ added in v1.0.5
func (r *Repository) ConfigSSLVerify(skipVerify bool) *plugin_exec.Cmd
ConfigSSLVerify disables globally the git ssl verification.
func (*Repository) ConfigSafeDirectory ¶ added in v1.0.5
func (r *Repository) ConfigSafeDirectory() *plugin_exec.Cmd
ConfigSafeDirectory disables globally the git ssl verification.
func (*Repository) FetchLFS ¶ added in v1.0.5
func (r *Repository) FetchLFS() *plugin_exec.Cmd
FetchLFS fetches lfs.
func (*Repository) FetchSource ¶ added in v1.0.5
func (r *Repository) FetchSource(ref string) *plugin_exec.Cmd
FetchSource fetches the source from remote.
func (*Repository) FetchTags ¶ added in v1.0.5
func (r *Repository) FetchTags() *plugin_exec.Cmd
FetchTags fetches the source from remote.
func (*Repository) Init ¶ added in v1.0.5
func (r *Repository) Init() *plugin_exec.Cmd
RemoteRemove drops the defined remote from a git repo.
func (*Repository) RemoteAdd ¶ added in v1.0.5
func (r *Repository) RemoteAdd() *plugin_exec.Cmd
RemoteAdd adds an additional remote to a git repo.
func (*Repository) SubmoduleUpdate ¶ added in v1.0.5
func (r *Repository) SubmoduleUpdate() *plugin_exec.Cmd
SubmoduleUpdate recursively initializes and updates submodules.