Documentation ¶
Index ¶
- type BranchOpts
- type Repository
- func (r *Repository) Branches(opts *BranchOpts) ([]string, error)
- func (r *Repository) FirstCommitTime(refName string) (time.Time, error)
- func (r *Repository) LatestCommitTime(refName string) (time.Time, error)
- func (r *Repository) Remote() string
- func (r *Repository) ShortName(refName string) string
- func (r *Repository) Tags() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchOpts ¶
type BranchOpts struct {
ShortNames bool
}
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(path string, remote string) (*Repository, error)
func (*Repository) Branches ¶
func (r *Repository) Branches(opts *BranchOpts) ([]string, error)
func (*Repository) FirstCommitTime ¶
func (r *Repository) FirstCommitTime(refName string) (time.Time, error)
func (*Repository) LatestCommitTime ¶
func (r *Repository) LatestCommitTime(refName string) (time.Time, error)
func (*Repository) Remote ¶
func (r *Repository) Remote() string
func (*Repository) ShortName ¶
func (r *Repository) ShortName(refName string) string
func (*Repository) Tags ¶
func (r *Repository) Tags() ([]string, error)
Click to show internal directories.
Click to hide internal directories.