git

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(user, password string) (transport.AuthMethod, error)

func Clone

func Clone(auth transport.AuthMethod, url, path string) (*gogit.Repository, error)

func CurrentBranch

func CurrentBranch() (string, error)

func GetURL

func GetURL() (string, error)

func GitRaw

func GitRaw(args ...string) (string, error)

func HasUpstreamChanges

func HasUpstreamChanges() (bool, string, error)

func Init

func Init() (string, error)

func IsSha

func IsSha(str string) bool

func Modified

func Modified() ([]string, error)

func Repair

func Repair(root string) error

func Repo

func Repo() (*gogit.Repository, error)

func RepoName

func RepoName(url string) string

func Root

func Root() (string, error)

func SSHAuth

func SSHAuth(user, pem, passphrase string) (transport.AuthMethod, error)

func Submodule added in v0.8.3

func Submodule(url string) error

func Sync

func Sync(root, msg string, force bool) error

func UrlComponents

func UrlComponents(url string) (user, host, port, path string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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