git

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(opts CloneOptions) error

func GetCurrentBranch

func GetCurrentBranch(path string) (string, error)

func GetRemoteURL

func GetRemoteURL(path string) (string, error)

func IsGitRepo

func IsGitRepo(path string) bool

func Pull

func Pull(opts PullOptions) error

func RepoNameFromPath

func RepoNameFromPath(path string) string

func RepoNameFromURL

func RepoNameFromURL(url string) string

Types

type CloneOptions

type CloneOptions struct {
	URL        string
	Path       string
	Branch     string
	PrivateKey string
	Submodules bool
}

type PullOptions

type PullOptions struct {
	Path       string
	PrivateKey string
	Submodules bool
}

Jump to

Keyboard shortcuts

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