Documentation ¶
Index ¶
- func AppendGitIgnore(dir string, entries []string) (err error)
- func BasicAuth(user, password string) (transport.AuthMethod, error)
- func BranchedSubmodule(url, branch string) error
- func Clone(auth transport.AuthMethod, url, path string) (*gogit.Repository, error)
- func CurrentBranch() (string, error)
- func GetURL() (string, error)
- func GitRaw(args ...string) (string, error)
- func HasUpstreamChanges() (bool, string, error)
- func Init() (string, error)
- func IsSha(str string) bool
- func Modified() ([]string, error)
- func PathClone(url, branch, path string) error
- func PrintDiff() error
- func RemoveSubmodule(name string) error
- func Repo() (*gogit.Repository, error)
- func RepoName(url string) string
- func Rm(path string) error
- func Root() (string, error)
- func SSHAuth(user, pem, passphrase string) (transport.AuthMethod, error)
- func Status() (string, error)
- func Submodule(url string) error
- func Sync(root, msg string, force bool) error
- func UrlComponents(url string) (user, host, port, path string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendGitIgnore ¶ added in v0.9.8
AppendGitIgnore creates or appends to an existing '.gitignore' file.
func BranchedSubmodule ¶ added in v0.9.8
func Clone ¶
func Clone(auth transport.AuthMethod, url, path string) (*gogit.Repository, error)
func CurrentBranch ¶
func HasUpstreamChanges ¶
func RemoveSubmodule ¶ added in v0.9.8
func Repo ¶
func Repo() (*gogit.Repository, error)
func UrlComponents ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.