git

package
v0.0.0-...-47a2fa7 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 6 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
}

func NewGit

func NewGit(parentPath, path, url string, shell *shell.Shell) *Git

func (Git) AddRemote

func (git Git) AddRemote(name, url string) error

func (Git) Clone

func (git Git) Clone(branch string) ([]byte, error)

func (Git) Delete

func (git Git) Delete()

func (Git) Exists

func (git Git) Exists() bool

func (Git) Fetch

func (git Git) Fetch(remote string) error

func (Git) GetPath

func (git Git) GetPath() string

func (Git) GetRemotes

func (git Git) GetRemotes() ([]string, error)

func (Git) GetTags

func (git Git) GetTags() ([]string, error)

func (Git) MergeBranch

func (git Git) MergeBranch(remote, branch string) (int, error)

func (Git) MergeTag

func (git Git) MergeTag(tag string) (int, error)

func (Git) Pull

func (git Git) Pull(remote, branch string) error

func (Git) Push

func (git Git) Push(remote, branch string, force bool) (int, error)

func (Git) RemoveAll

func (git Git) RemoveAll() error

func (Git) RemoveRemote

func (git Git) RemoveRemote(name string) error

func (Git) ReplaceRemote

func (git Git) ReplaceRemote(name, url string) error

func (Git) ResetHard

func (git Git) ResetHard() error

func (Git) SetEmail

func (git Git) SetEmail(email string) (int, error)

func (Git) SetName

func (git Git) SetName(name string) (int, error)

func (Git) String

func (git Git) String() string

func (Git) Valid

func (git Git) Valid() bool

type GitError

type GitError string

func (GitError) Error

func (e GitError) Error() string

Jump to

Keyboard shortcuts

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