git

package
v1.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL