git

package
v0.0.0-...-c903ab0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisplayArgs = []string{"repo", "date", "hash", "message", "author"}
View Source
var FromArgs = []string{"ytd", "mtd", "wtd", "yesterday", "today"}

Functions

func Contains

func Contains(arr []string, elt string) bool

func ContainsAll

func ContainsAll(container []string, containing []string) bool

func MatchAny

func MatchAny(container string, containing []string) bool

Types

type Authentication

type Authentication struct {
	Type     string
	AuthFile string `mapstructure:"auth_file"`
}

type ByDate

type ByDate []Commit

func (ByDate) Len

func (s ByDate) Len() int

func (ByDate) Less

func (s ByDate) Less(i, j int) bool

func (ByDate) Swap

func (s ByDate) Swap(i, j int)

type Commit

type Commit struct {
	Commit     *object.Commit
	Repository *git.Repository
	Name       string
}

func NewCommit

func NewCommit(c *object.Commit, r *git.Repository, name string) (commit *Commit)

func (Commit) String

func (c Commit) String() string

type Filter

type Filter struct {
	From    time.Time
	Labels  []string
	Authors []string
	Display []string
}

func NewFilter

func NewFilter(flags *pflag.FlagSet) (f *Filter)

func (Filter) Filter

func (filter Filter) Filter(c *object.Commit) (b bool)

type Repository

type Repository struct {
	Url            string
	Labels         []string
	Name           string
	LocalPath      string
	Authentication Authentication
}

func (Repository) ListCommits

func (r Repository) ListCommits(filter Filter) (commits []Commit, e error)

func (Repository) SyncRepo

func (r Repository) SyncRepo() error

Jump to

Keyboard shortcuts

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