commits

package
v3.1.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitsSlice

func CommitsSlice(ctx context.Context, opts Opts) (res []Commit, _ State, rerr error)

Types

type Commit

type Commit struct {
	SHA       string
	Authored  UserAction
	Committed UserAction
	Message   string
}

func Convert

func Convert(c1 *object.Commit) Commit

type CommitsSeen

type CommitsSeen map[Hash]bool

func (CommitsSeen) MarshalJSON

func (s CommitsSeen) MarshalJSON() ([]byte, error)

func (*CommitsSeen) UnmarshalJSON

func (s *CommitsSeen) UnmarshalJSON(b []byte) error

type Hash

type Hash [20]byte

func (Hash) String

func (h Hash) String() string

type Opts

type Opts struct {
	State   State
	RepoDir string
}

type State

type State struct {
	CommitsSeen CommitsSeen
}

func Commits

func Commits(ctx context.Context, opts Opts, res chan *object.Commit) (_ State, rerr error)

type UserAction

type UserAction struct {
	Email string
	Name  string
	Date  time.Time
}

Jump to

Keyboard shortcuts

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