git

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRepositoryAlreadyExists = git.ErrRepositoryAlreadyExists

Functions

func CheckoutRepository added in v0.13.0

func CheckoutRepository(path, ref, commitSHA string, skipTLSVerify bool) (*git.Repository, error)

CheckoutRepository checks out a specific commit in a given repository

func CloneRepository

func CloneRepository(path, url, ref string, skipTLSVerify bool) (*git.Repository, error)

CloneRepository clones a repository from a given URL and reference to a temporary directory

func GetAuthUrl

func GetAuthUrl(url, authType, token string) string

GetAuthUrl returns a clone URL with an access token for private repositories

Types

This section is empty.

Jump to

Keyboard shortcuts

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