git

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexGitRemote

func IndexGitRemote(url, req string) (*plumbing.Reference, []*plumbing.Reference, error)

given a git url, and a req (required) version returns the minReference, allRefferences, and error

Types

type GitRepo

type GitRepo struct {
	Store storage.Storer
	FS    billy.Filesystem

	Repo *gogit.Repository

	Remote *gogit.Remote

	FetchOptions *gogit.FetchOptions
	ListOptions  *gogit.ListOptions
}

func CloneLocalRepo

func CloneLocalRepo(location string) (*GitRepo, error)

func CloneRepoRef

func CloneRepoRef(srcUrl string, ref *plumbing.Reference) (*GitRepo, error)

func NewRemote

func NewRemote(srcUrl string) (*GitRepo, error)

func (*GitRepo) ClonedRefs

func (R *GitRepo) ClonedRefs() ([]*plumbing.Reference, error)

func (*GitRepo) RemoteRefs

func (R *GitRepo) RemoteRefs() ([]*plumbing.Reference, error)

Jump to

Keyboard shortcuts

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