git

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchHeadCommit

func BranchHeadCommit(url, branch string) (string, error)

func Clone

func Clone(path, url, branch string) error

func GetAuthRepoUrl

func GetAuthRepoUrl(url, user, token string) (string, error)

func HeadCommit

func HeadCommit(path string) (string, error)

func Init

func Init(path string, url string) error

func IsValid

func IsValid(url string) bool

func LazyPush

func LazyPush(path, repo, refspec string) error

add,commit and push changes.

func Push

func Push(path, repo, refspec string) error

func Update

func Update(path, branch string) error

Types

type GitClient

type GitClient struct {
	UserName string
	Password string
}

Jump to

Keyboard shortcuts

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