git

package
v0.0.0-...-2200605 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Sha     string
	Subject string
	Body    string
	Author  string
	Date    time.Time
	Files   []string
}

func (*Commit) HasFile

func (commit *Commit) HasFile(filename string) bool

type Commits

type Commits []*Commit

func CommitsAfter

func CommitsAfter(after time.Time) (Commits, error)

func Log

func Log(extraArgs ...string) (Commits, error)

func (*Commits) ContainsFile

func (l *Commits) ContainsFile(filename string) Commits

func (*Commits) CountAfter

func (l *Commits) CountAfter(time time.Time) int

CountAfter counts the number of commits after a time

func (*Commits) RelatedContributors

func (commits *Commits) RelatedContributors() Contributors

func (*Commits) RelatedItems

func (commits *Commits) RelatedItems() []string

type Contributor

type Contributor struct {
	Name       string
	Count      int
	LastCommit *Commit
}

func NewContributor

func NewContributor(name string, lastCommit *Commit) *Contributor

func (*Contributor) String

func (c *Contributor) String() string

type Contributors

type Contributors []*Contributor

type RelatedFile

type RelatedFile struct {
	Name       string
	Count      int
	LastCommit time.Time
}

func NewRelatedFile

func NewRelatedFile(name string, lastCommitTime time.Time) *RelatedFile

Jump to

Keyboard shortcuts

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