repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFoundError added in v0.1.3

func NotFoundError() error

Types

type Branch

type Branch struct {
	Local  string
	Remote string
	Refs   []string
	// contains filtered or unexported fields
}

func NewBranch

func NewBranch(r *git.Repository) (Branch, error)

type Commit added in v0.2.0

type Commit struct {
	Hash    string
	Author  User
	When    time.Time
	Message string
}

func NewHeadCommit added in v0.2.0

func NewHeadCommit(r *git.Repository) (Commit, error)

type Remote

type Remote struct {
	Remotes []string
}

func NewRemote

func NewRemote(g *git.Repository) (Remote, error)

type Repository

type Repository struct {
	Users      []User
	Branch     Branch
	Remote     Remote
	HeadCommit Commit
	// contains filtered or unexported fields
}

func New

func New() (*Repository, error)

type User

type User struct {
	Name  string
	Email string
}

func NewUsers

func NewUsers(r *git.Repository) ([]User, error)

Jump to

Keyboard shortcuts

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