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 Repo ¶
type Repo struct { Name string Repository *git.Repository Readme string LastUpdated *time.Time // contains filtered or unexported fields }
Repo represents a Git repository.
func (*Repo) GetCommits ¶ added in v0.2.0
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) 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.