git

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRepoPath added in v0.19.0

func BuildRepoPath(endpoint *transport.Endpoint) string

BuildRepoPath constructs a repository path from a Git endpoint. Uses string concatenation to preserve forward slashes, which is required for Go module paths even on Windows.

Types

type CloneOptions

type CloneOptions struct {
	Depth int
}

type GitFetcher

type GitFetcher struct {
	// contains filtered or unexported fields
}

func New

func New(cacheDir string, options CloneOptions) *GitFetcher

func (*GitFetcher) Get

func (gf *GitFetcher) Get(ctx context.Context, url, version string) (string, error)

type Reference

type Reference struct {
	// contains filtered or unexported fields
}

Reference is a reference to either a commit/branch/partial/tag, or an annotated tag

func NewReference

func NewReference(ref *plumbing.Reference) *Reference

func NewReferenceToAnnotatedTag

func NewReferenceToAnnotatedTag(tag *object.Tag) *Reference

Jump to

Keyboard shortcuts

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