git

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL