Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingRepo = errors.New("missing repo")
ErrMissingRepo indicates that the requested repository could not be found.
Functions ¶
This section is empty.
Types ¶
type RepoCommit ¶
RepoCommit contains metadata for a Git commit.
type RepoSource ¶
type RepoSource struct { Path string // contains filtered or unexported fields }
RepoSource is a reference to an on-disk repositories.
func NewRepoSource ¶
func NewRepoSource(repoPath string) *RepoSource
NewRepoSource creates a new RepoSource.
func (*RepoSource) AllRepos ¶
func (rs *RepoSource) AllRepos() []*Repo
AllRepos returns all repositories for the given RepoSource.
func (*RepoSource) GetCommits ¶
func (rs *RepoSource) GetCommits(limit int) []RepoCommit
GetCommits returns commits for the repository.
func (*RepoSource) GetRepo ¶
func (rs *RepoSource) GetRepo(name string) (*Repo, error)
GetRepo returns a repository by name.
func (*RepoSource) InitRepo ¶
func (rs *RepoSource) InitRepo(name string, bare bool) (*Repo, error)
InitRepo initializes a new Git repository.
func (*RepoSource) LoadRepos ¶
func (rs *RepoSource) LoadRepos() error
LoadRepos opens Git repositories.
Click to show internal directories.
Click to hide internal directories.