git

package
v0.12.47 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendGitIgnore

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

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

func PathClone(url, branch, path string) error

func PrintDiff

func PrintDiff() error

func RemoveSubmodule

func RemoveSubmodule(name string) error

func Repo

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

func RepoName

func RepoName(url string) string

func Rm

func Rm(path string) error

func Root

func Root() (string, error)

func SSHAuth

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

func Status

func Status() (string, error)

func Submodule

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