git

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	Directory  string
	RemoteName string
	GitPath    string
}

func New

func New(directory string) (*Git, error)

func SparseCheckout

func SparseCheckout(target string, repo string, branch string, dir string) (*Git, error)

func (*Git) CommitID

func (g *Git) CommitID() (string, error)

func (*Git) Config

func (g *Git) Config(key, value string) error

func (*Git) Exec

func (g *Git) Exec(args ...string) error

func (*Git) Init

func (g *Git) Init() error

func (*Git) PullShallow

func (g *Git) PullShallow(branch string) error

func (*Git) RemoteAdd

func (g *Git) RemoteAdd(repo string) error

func (*Git) SetCheckoutPath

func (g *Git) SetCheckoutPath(dir string) error

Jump to

Keyboard shortcuts

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