git

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitDirectory = ".git"
	GitBinary    = "git"
	GitRemote    = "origin"

	SshBinary = "ssh"

	StdOutUpToDate = "Already up-to-date."
)

Variables

This section is empty.

Functions

func Clone

func Clone(path string, url string, identity string, branch string) (string, error)

Clone clones the given repostiory to the filesystem.

func IsInstalled

func IsInstalled() bool

func IsRepository

func IsRepository(dir string) bool

IsRepository returns true if the given directory is a git repository.

func Pull

func Pull(path string, identity string) (string, error)

Pull pulls new changes from a remote repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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