simplegit

package
v0.0.0-...-9ceea0b Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	URL          string           `json:"URL"`
	CloneOptions git.CloneOptions `json:"-"`
	Cached       *git.Repository  `json:"-"`
}

Repository represents a git repository

func (*Repository) Fetch

func (r *Repository) Fetch() error

Fetch clones the repository to an in-memory filesystem The CloneOptions field is used for cloning.

func (*Repository) Raw

func (r *Repository) Raw() (raw *git.Repository, err error)

Raw returns a go-git Repository structure for this repository. Calls Fetch if necessary.

func (*Repository) RemoteRefs

func (r *Repository) RemoteRefs() (out []struct {
	Name      string
	Reference string
}, err error)

RemoteRefs returns the list of refs in the default remote

func (*Repository) Tags

func (r *Repository) Tags() (out []struct {
	Name      string
	Reference string
}, err error)

Tags returns the list of tags in this repository. Calls Fetch if necessary.

Jump to

Keyboard shortcuts

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