git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(repo string, target string) error

func ExecGit

func ExecGit(args []string, cwd string) (string, error)

ExecGit executes a git command.

func IsValidGitUrl

func IsValidGitUrl(url string) bool

func LastCommit

func LastCommit(target string) (string, error)

func ParseGitUrl

func ParseGitUrl(url string) (*url.URL, error)

func Pull

func Pull(target string) (string, error)

func RemoteUrl

func RemoteUrl(target string) (string, error)

func RepositoryNameFromGitUrl

func RepositoryNameFromGitUrl(url string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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