Documentation
¶
Index ¶
- func BasicAuth(user, password string) (transport.AuthMethod, 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 Repair(root string) error
- func Repo() (*gogit.Repository, error)
- func RepoName(url string) string
- func Root() (string, error)
- func SSHAuth(user, pem, passphrase string) (transport.AuthMethod, 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 Clone ¶
func Clone(auth transport.AuthMethod, url, path string) (*gogit.Repository, error)
func CurrentBranch ¶
func HasUpstreamChanges ¶
func Repo ¶
func Repo() (*gogit.Repository, error)
func UrlComponents ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.