git

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Git command executor

func NewGit

func NewGit(out, err io.Writer) Git

func (*Git) Clone

func (g *Git) Clone(src, dst string, opts Option) error

func (*Git) HasUpdate added in v0.4.0

func (g *Git) HasUpdate(verbose bool) (bool, error)

HasUpdate is supposed to be executed inside a working tree

func (*Git) Pull added in v0.2.0

func (g *Git) Pull(verbose bool) error

Pull is supposed to be executed inside a working tree

func (*Git) Worktree added in v0.5.2

func (g *Git) Worktree(verbose bool) (Worktree, error)

Worktree is supposed to be executed inside a working tree

type Option added in v0.5.0

type Option struct {
	Branch  string
	Commit  string
	Shallow bool
	Verbose bool
}

Option for some operations to pass from outside of this package

type Worktree added in v0.5.2

type Worktree struct {
	RemoteURL string
	Branch    string
	Tag       string
	// contains filtered or unexported fields
}

func (*Worktree) BranchOrTag added in v0.5.2

func (wt *Worktree) BranchOrTag() string

func (*Worktree) IsBranchDefault added in v0.5.2

func (wt *Worktree) IsBranchDefault() bool

Jump to

Keyboard shortcuts

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