git

package
v0.0.0-...-e404990 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const Z40 = "0000000000000000000000000000000000000000"

Variables

This section is empty.

Functions

func GetCurrentRef

func GetCurrentRef(dir string) (string, error)

func RevList

func RevList(dir, old, new string) ([]string, error)

Types

type Commit

type Commit struct {
	ID          string    `json:"id"`
	Author      Committer `json:"author"`
	Committer   Committer `json:"committer"`
	Message     string    `json:"message"`
	CommittedAt time.Time `json:"committed_at"`
}

func GetCommit

func GetCommit(dir, revision string) (Commit, error)

func GetLastCommit

func GetLastCommit(dir string) (Commit, error)

type Committer

type Committer struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type Push

type Push struct {
	Ref     string   `json:"ref"`
	Old     string   `json:"old"`
	New     string   `json:"new"`
	Commits []Commit `json:"commits"`
}

Jump to

Keyboard shortcuts

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