repository

package
v0.0.0-...-ddc7402 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoBranch = errors.New("Git head is not a branch")
)

Functions

This section is empty.

Types

type Repository

type Repository struct {
	Branch string
	Slug   string
}

Repository represents the git repository.

func NewRepository

func NewRepository(config config.Git) (Repository, error)

NewRepository creates a new repository.

func NewRepositoryFromBranch

func NewRepositoryFromBranch(branch string) Repository

NewRepositoryFromBranch creates a new repository from branch name.

Jump to

Keyboard shortcuts

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