Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { URL string `json:"URL"` CloneOptions git.CloneOptions `json:"-"` Cached *git.Repository `json:"-"` }
Repository represents a git repository
func (*Repository) Fetch ¶
func (r *Repository) Fetch() error
Fetch clones the repository to an in-memory filesystem The CloneOptions field is used for cloning.
func (*Repository) Raw ¶
func (r *Repository) Raw() (raw *git.Repository, err error)
Raw returns a go-git Repository structure for this repository. Calls Fetch if necessary.
func (*Repository) RemoteRefs ¶
func (r *Repository) RemoteRefs() (out []struct { Name string Reference string }, err error)
RemoteRefs returns the list of refs in the default remote
Click to show internal directories.
Click to hide internal directories.