git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

func (*Reference) Commit

func (r *Reference) Commit(repo *git.Repository) (*object.Commit, error)

func (*Reference) EscapeHash

func (r *Reference) EscapeHash() (string, error)

Jump to

Keyboard shortcuts

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