gitutil

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCloned

func EnsureCloned(uri, destinationPath string) error

EnsureCloned will clone into the destination path, otherwise will return no error.

func EnsureUpdated

func EnsureUpdated(uri, destinationPath string) error

EnsureUpdated will ensure the destination path exists and is up to date.

func Exec added in v0.4.0

func Exec(pwd string, args ...string) (string, error)

func GetRemoteURL added in v0.4.0

func GetRemoteURL(dir string) (string, error)

GetRemoteURL returns the url of the remote origin

func IsGitCloned

func IsGitCloned(gitPath string) (bool, error)

IsGitCloned will test if the path is a git dir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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