Versions in this module Expand all Collapse all v1 v1.5.1 Apr 28, 2017 Changes in this version + const Shallow + var ErrGitNotAvailable = errors.New("git binary not available") + func IsBareRoot(path string) (bool, error) + func IsExitCode(err error, exitCode int) bool + func IsGitInstalled() bool + func NameFromRepositoryURL(url *url.URL) (string, bool) + func ParseRepository(s string) (*url.URL, error) + type ChangedRef struct + New string + Old string + Ref string + func ParsePostReceive(r io.Reader) ([]ChangedRef, error) + type GitError struct + Err error + Stderr string + Stdout string + func (e *GitError) Error() string + type Repository interface + Add func(dir string, spec string) error + AddLocalConfig func(dir, name, value string) error + AddRemote func(dir string, name, url string) error + Archive func(dir, ref, format string, w io.Writer) error + Checkout func(dir string, ref string) error + Clone func(dir string, url string) error + CloneBare func(dir string, url string) error + CloneMirror func(dir string, url string) error + CloneWithOptions func(dir string, url string, args ...string) error + Commit func(dir string, message string) error + Fetch func(dir string) error + GetInfo func(location string) (*SourceInfo, []error) + GetOriginURL func(dir string) (string, bool, error) + GetRef func(dir string) string + GetRootDir func(dir string) (string, error) + Init func(dir string, bare bool) error + ListRemote func(url string, args ...string) (string, string, error) + ShowFormat func(dir, commit, format string) (string, error) + SubmoduleUpdate func(dir string, init, recursive bool) error + TimedListRemote func(timeout time.Duration, url string, args ...string) (string, string, error) + func NewRepository() Repository + func NewRepositoryForBinary(gitBinaryPath string) Repository + func NewRepositoryForBinaryWithEnvironment(gitBinaryPath string, env []string) Repository + func NewRepositoryWithEnv(env []string) Repository + type SourceInfo struct + type TimeoutError struct + Err error + func (e *TimeoutError) Error() string v1.5.0-alpha.1 Dec 29, 2016 Incompatible versions in this module v3.7.0-alpha.0+incompatible Aug 1, 2017