Versions in this module Expand all Collapse all v0 v0.5.0 Jan 23, 2020 Changes in this version type Remote + func AddRemote(name, initURL, finalURL string) (*Remote, error) v0.4.0 Jan 14, 2020 Changes in this version + var GitCommand = func(args ...string) *exec.Cmd + func Config(name string) (string, error) + func CurrentBranch() (string, error) + func ParseURL(rawURL string) (u *url.URL, err error) + func Push(remote string, ref string) error + func ToplevelDir() (string, error) + func UncommittedChangeCount() (int, error) + func VerifyRef(ref string) bool + type BranchConfig struct + MergeRef string + RemoteName string + RemoteURL *url.URL + func ReadBranchConfig(branch string) (cfg BranchConfig) + type Remote struct + FetchURL *url.URL + Name string + PushURL *url.URL + func (r *Remote) String() string + type RemoteSet []*Remote + func Remotes() (RemoteSet, error) + type SSHAliasMap map[string]string + func ParseSSHConfig() SSHAliasMap + func (m SSHAliasMap) Translator() func(*url.URL) *url.URL