git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoGitRepository

func NewGoGitRepository(projectPath string, fromSHA string, toSHA string) (*goGitRepository, error)

Types

type Commit

type Commit struct {
	Author    Signature
	Committer Signature
	Message   string
	Hash      string
}

type CommitFunc

type CommitFunc func(commit *Commit) error

type File

type File struct {
	Path string
	Blob func() (io.ReadCloser, error)
	Oid  string
	Size int64
}

type FileFunc

type FileFunc func(file *File, fromCommit, toCommit string) error

type Repository

type Repository interface {
	EachFileChange(ins, mod, del FileFunc) error
	EachCommit(f CommitFunc) error
}

type Signature

type Signature struct {
	Name  string
	Email string
	When  time.Time
}

Jump to

Keyboard shortcuts

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