git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	ID          string
	Author      Person
	AuthoredAt  time.Time
	Committer   Person
	CommittedAt time.Time
	IsMerge     bool
	Message     string
}

func MergedCommits

func MergedCommits(git Git, from Reference, to Reference) ([]*Commit, error)

func SquashedCommits

func SquashedCommits(git Git, from Reference, to Reference) ([]*Commit, error)

func (*Commit) Equal

func (c *Commit) Equal(other *Commit) bool

func (*Commit) String

func (c *Commit) String() string

type Git

type Git interface {
	Equal(other Git) bool
	Log(from Reference, to Reference) ([]*Commit, error)
	FindRemote() (*Remote, error)
}

type Path

type Path string

func (Path) String

func (p Path) String() string

type Person

type Person struct {
	Fullname string
	Email    string
}

func NewPerson

func NewPerson(name string, email string) Person

func (Person) Equal

func (p Person) Equal(other Person) bool

type Reference

type Reference string

func NewReference

func NewReference(name string) Reference

type Remote

type Remote struct {
	Type           RemoteType
	Host           string
	RepositoryName string
}

type RemoteType

type RemoteType int
const (
	HTTPS RemoteType = iota
	GIT
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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