git

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRemoteURLNotFound = fmt.Errorf("remote URL not found")
	ErrGitRepoNil        = fmt.Errorf("git repository is nil")
	ErrBranchesNil       = fmt.Errorf("branches are nil")
	ErrCurrBrancheNil    = fmt.Errorf("current branch is nil")
	ErrGitTreeNil        = fmt.Errorf("git tree is nil")
)

Functions

This section is empty.

Types

type Service added in v0.22.1

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

func NewGitService added in v0.22.1

func NewGitService() *Service

func NewGitServiceWithRepo added in v0.22.1

func NewGitServiceWithRepo(repo *git.Repository) *Service

func (*Service) GetGitBasePath added in v0.22.1

func (g *Service) GetGitBasePath() (string, error)

func (*Service) GetGitBasePathWithRepo added in v0.22.1

func (g *Service) GetGitBasePathWithRepo(repo *git.Repository) (string, error)

func (*Service) GetGitBranches added in v0.22.1

func (g *Service) GetGitBranches() (*storer.ReferenceIter, error)

func (*Service) GetGitCurrentBranchName added in v0.22.1

func (g *Service) GetGitCurrentBranchName() (string, error)

func (*Service) GetGitHead added in v0.22.1

func (g *Service) GetGitHead() (*plumbing.Reference, error)

func (*Service) GetGitHeadTree added in v0.22.1

func (g *Service) GetGitHeadTree() (*object.Tree, error)

func (*Service) GetGitRepo added in v0.22.1

func (g *Service) GetGitRepo() (*git.Repository, error)

func (*Service) GetRemoteGitRepo added in v0.22.1

func (g *Service) GetRemoteGitRepo(remoteURL string) (*git.Repository, error)

func (*Service) PushTag added in v0.22.1

func (g *Service) PushTag() error

func (*Service) TagSemver added in v0.22.1

func (g *Service) TagSemver() (bool, error)

Jump to

Keyboard shortcuts

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