git

package
v0.0.0-...-59d4d0b Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 8 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 {
	billy.Filesystem
	// contains filtered or unexported fields
}

Repository allows for easy access of files in a remote git repo

func New

func New(repoURL, commit string) (*Repository, error)

New returns a new Repository with the given URL and commit hash

func (*Repository) Checkout

func (r *Repository) Checkout(commit string) error

Checkout sets the Repository's commit

func (*Repository) Hash

func (r *Repository) Hash() (string, error)

Hash returns the hash currently checked out

Jump to

Keyboard shortcuts

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