git

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendGitIgnore added in v0.9.8

func AppendGitIgnore(dir string, entries []string) (err error)

AppendGitIgnore creates or appends to an existing '.gitignore' file.

func BasicAuth

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

func BranchedSubmodule added in v0.9.8

func BranchedSubmodule(url, branch string) 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 PathClone added in v0.9.14

func PathClone(url, branch, path string) error

func PrintDiff added in v0.9.23

func PrintDiff() error

func RemoveSubmodule added in v0.9.8

func RemoveSubmodule(name string) error

func Repo

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

func RepoName

func RepoName(url string) string

func Rm added in v0.9.8

func Rm(path string) error

func Root

func Root() (string, error)

func SSHAuth

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

func Status added in v0.10.0

func Status() (string, 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