git

package
v0.0.0-...-73d1639 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHandler

type GitHandler interface {
	Clone(path, url string) error
	GetBranchName(gitPath string) (string, error)
	NewBranch(gitPath string, name string) error
	RemoveBranch(gitPath string, name string) error
	CheckoutBranch(gitPath string, name string) error
	GenerateBranchName() string
	CommitBranch(gitPath string, name string) error
	AddBranch(gitPath string) error
	ResetBranch(gitPath string) error
	ListBranch(gitPath string) ([]string, error)
	Pull(gitPath string) error
}

func GetGitHandler

func GetGitHandler() GitHandler

type GitHandlerImpl

type GitHandlerImpl struct{}

func (*GitHandlerImpl) AddBranch

func (handler *GitHandlerImpl) AddBranch(gitPath string) error

func (*GitHandlerImpl) CheckoutBranch

func (handler *GitHandlerImpl) CheckoutBranch(gitPath string, name string) error

func (*GitHandlerImpl) Clone

func (handler *GitHandlerImpl) Clone(path, url string) error

func (*GitHandlerImpl) CommitBranch

func (handler *GitHandlerImpl) CommitBranch(gitPath string, name string) error

func (*GitHandlerImpl) GenerateBranchName

func (handler *GitHandlerImpl) GenerateBranchName() string

func (*GitHandlerImpl) GetBranchName

func (handler *GitHandlerImpl) GetBranchName(gitPath string) (string, error)

func (*GitHandlerImpl) ListBranch

func (handler *GitHandlerImpl) ListBranch(gitPath string) ([]string, error)

func (*GitHandlerImpl) NewBranch

func (handler *GitHandlerImpl) NewBranch(gitPath string, name string) error

func (*GitHandlerImpl) Pull

func (handler *GitHandlerImpl) Pull(gitPath string) error

func (*GitHandlerImpl) RemoveBranch

func (handler *GitHandlerImpl) RemoveBranch(gitPath string, name string) error

func (*GitHandlerImpl) ResetBranch

func (handler *GitHandlerImpl) ResetBranch(gitPath string) error

Jump to

Keyboard shortcuts

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