git

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors struct {
	RemoteNotFound       error
	RemoteNotLoaded      error
	RemoteAlreadyExists  error
	RepoAlreadyExists    error
	RepoNotFound         error
	PullFailed           error
	AuthNotFound         error
	InvalidAuthMethod    error
	InvalidPassphrase    error
	KeyNotSupported      error
	AlreadyUpToDate      error
	MergeFailed          error
	RemoteBranchNotFound error
}

type Git

type Git struct {
	// contains filtered or unexported fields
}

func New

func New(gitErrors *Errors) (*Git, error)

func (*Git) AddRemote

func (g *Git) AddRemote(remote *model.Remote) error

func (*Git) AddThenCommit

func (g *Git) AddThenCommit(commitMsg string) error

func (*Git) ChangeOccured

func (g *Git) ChangeOccured() (bool, error)

func (*Git) CheckoutBranch

func (g *Git) CheckoutBranch(name model.Branch) error

func (*Git) CreateBranch

func (g *Git) CreateBranch(name model.Branch) error

func (*Git) CreateRepo

func (g *Git) CreateRepo() error

func (*Git) GetBranchNames

func (g *Git) GetBranchNames() ([]model.Branch, error)

func (*Git) GetRemoteDetails

func (g *Git) GetRemoteDetails() (*model.Remote, error)

func (*Git) GetRepo

func (g *Git) GetRepo() error

func (*Git) LoadRemote

func (g *Git) LoadRemote(remoteName string) error

func (*Git) Pull

func (g *Git) Pull(remote *model.Remote, branch model.Branch, auth *config.Credentials, force bool) error

func (*Git) Push

func (g *Git) Push(remote *model.Remote, branch model.Branch, auth *config.Credentials, force bool) error

Jump to

Keyboard shortcuts

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