Versions in this module Expand all Collapse all v0 v0.1.1 Jan 6, 2020 Changes in this version + const RepositoryCloned + const RepositoryError + const RepositoryOpened + func GetAuth(repo *config.Repo) (transport.AuthMethod, error) + func LocalBranches(s storer.ReferenceStorer) (storer.ReferenceIter, error) + func StringInSlice(a string, list []string) bool + func WorkDir(r Repo) string + type Repo interface + Branch func() plumbing.ReferenceName + CheckRef func(string) error + CheckoutBranch func(plumbing.ReferenceName) error + DiffStatus func(string) (object.Changes, error) + GetConfig func() *config.Repo + GetStorer func() storage.Storer + Head func() (*plumbing.Reference, error) + Lock func() + Name func() string + Pull func(string) error + ResolveRevision func(plumbing.Revision) (*plumbing.Hash, error) + Unlock func() + Worktree func() (*git.Worktree, error) + type Repository struct + Authentication transport.AuthMethod + Config *config.Repo + func LoadRepos(cfg *config.Config) ([]*Repository, error) + func New(repoBasePath string, repoConfig *config.Repo, auth transport.AuthMethod) (*Repository, int, error) + func (r *Repository) Branch() plumbing.ReferenceName + func (r *Repository) CheckRef(ref string) error + func (r *Repository) CheckoutBranch(branch plumbing.ReferenceName) error + func (r *Repository) Clone(path string) error + func (r *Repository) DiffStatus(ref string) (object.Changes, error) + func (r *Repository) GetConfig() *config.Repo + func (r *Repository) GetStorer() storage.Storer + func (r *Repository) Name() string + func (r *Repository) Pull(branchName string) error