git

package
v0.0.0-...-9c81b8b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// WithRepo sets repo of client
	WithRepo(repo string) Interface

	// Fetch fetches whole commits of the repo
	// If repo doesn't exist, clone first
	// If ref is not empty, just fetch ref
	Fetch(ref string) error

	// Checkout checkout to specifid commit
	Checkout(commit string) error
}

Interface defines git interface to fetch code

func New

func New(path string) (Interface, error)

New returns a git Interface

Jump to

Keyboard shortcuts

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