git

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitClient

type GitClient struct{}

func NewGit

func NewGit() GitClient

func (GitClient) Checkout

func (g GitClient) Checkout(repo scm.Repo) error

func (GitClient) Clean

func (g GitClient) Clean(repo scm.Repo) error

func (GitClient) Clone

func (g GitClient) Clone(repo scm.Repo) error

func (GitClient) FetchAll added in v1.7.2

func (g GitClient) FetchAll(repo scm.Repo) error

func (GitClient) Pull

func (g GitClient) Pull(repo scm.Repo) error

func (GitClient) Reset

func (g GitClient) Reset(repo scm.Repo) error

func (GitClient) SetOrigin

func (g GitClient) SetOrigin(repo scm.Repo) error

func (GitClient) SetOriginWithCredentials added in v1.8.7

func (g GitClient) SetOriginWithCredentials(repo scm.Repo) error

func (GitClient) UpdateRemote

func (g GitClient) UpdateRemote(repo scm.Repo) error

type Gitter

type Gitter interface {
	Clone(scm.Repo) error
	Reset(scm.Repo) error
	Pull(scm.Repo) error
	SetOrigin(scm.Repo) error
	SetOriginWithCredentials(scm.Repo) error
	Clean(scm.Repo) error
	Checkout(scm.Repo) error
	UpdateRemote(scm.Repo) error
	FetchAll(scm.Repo) error
}

Jump to

Keyboard shortcuts

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