git

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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

func GetGitBasePath

func GetGitBasePath() (string, error)

func GetGitBasePathWithRepo

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

func GetGitBranches added in v0.20.0

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

func GetGitCurrentBranchName added in v0.20.0

func GetGitCurrentBranchName() (string, error)

func GetGitHead added in v0.20.0

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

func GetGitHeadTree added in v0.20.0

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

func GetGitRepo

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

func GetRemoteGitRepo

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

func PushTag

func PushTag() error

func TagSemver

func TagSemver() (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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