git

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(scmURL, destination string) error

Clone clones a git repo into a destination directory

func FetchPR added in v1.0.22

func FetchPR(prNumber string, branch string) error

FetchPR fetches a pull request into a specified branch

func Merge added in v1.0.22

func Merge(branch string) error

Merge merges changes on the specified branch

func MergePR added in v1.0.22

func MergePR(prNumber string, branch string) error

MergePR calls FetchPR and Merge

func Reset added in v1.0.34

func Reset(sha string) error

Reset resets the git HEAD to the specified commit

func SetConfig added in v1.0.20

func SetConfig(setting, name string) error

SetConfig sets up git configuration

func Setup added in v1.0.22

func Setup(scmURL, destination, pr, sha string) error

Setup clones a repository, sets the local config, and merges a PR if necessary

Types

This section is empty.

Jump to

Keyboard shortcuts

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