git

package
v0.0.0-...-526c146 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2018 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config *config.Config

Functions

func CheckoutBranch

func CheckoutBranch(repo *git.Repository, worktree *git.Worktree, ref *plumbing.Reference) (string, error)

func CheckoutTag

func CheckoutTag(repo *git.Repository, worktree *git.Worktree, ref *plumbing.Reference) (string, error)

func Clone

func Clone(url, path string) (*git.Repository, error)

func CloneOrOpenAndUpdate

func CloneOrOpenAndUpdate(url, path string) (*git.Repository, error)

func CreateArtifactFromRepository

func CreateArtifactFromRepository(repoPath, target string) error

func GetAuth

func GetAuth() (*ssh.PublicKeys, error)

func GitUrlToDirectory

func GitUrlToDirectory(url string) (string, error)

func OpenAndFetch

func OpenAndFetch(path string) (*git.Repository, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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