Versions in this module Expand all Collapse all v0 v0.0.2 Oct 12, 2022 Changes in this version type Repository + func (repo *Repository) ExecColor(args ...string) error + func (repo *Repository) GetRemoteURL(remote string) (string, error) + func (repo *Repository) SetRemoteURL(remote, url string) error v0.0.1 Oct 11, 2022 Changes in this version + const BranchAhead + const BranchBehind + const BranchConflict + const BranchDetached + const BranchGone + const BranchLocal + const BranchSync + var Default = New("") + func ColorBranchState(state string) string + type BranchDetail struct + Commit string + CommitMsg string + Current bool + IsRemote bool + Name string + Remote string + State string + func ParseBranchDetail(line string) (*BranchDetail, error) + func (b *BranchDetail) ColorName() string + func (b *BranchDetail) ColorRemote() string + type Repository struct + Path string + func New(path string) *Repository + func (repo *Repository) AddRemote(remote, url string) error + func (repo *Repository) Checkout(name string, create bool) error + func (repo *Repository) ConfigRemote(branch, remote string) error + func (repo *Repository) ConfigUserEmail(user, email string) error + func (repo *Repository) Exec(args ...string) error + func (repo *Repository) Fetch(prune, pruneTag bool) error + func (repo *Repository) LatestTag() (string, error) + func (repo *Repository) ListLocalBranches() ([]*BranchDetail, error) + func (repo *Repository) ListRemoteBranches(remote string, locals []*BranchDetail) ([]string, error) + func (repo *Repository) ListRemotes() ([]string, error) + func (repo *Repository) ListTags() ([]string, error) + func (repo *Repository) Output(args ...string) (string, error) + func (repo *Repository) RemoveBranch(branch string) error + func (repo *Repository) SetRemote(url string) error + func (repo *Repository) UncommittedChanges() ([]string, error)