git

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Checkout(repo Repository, commit string) error
	Clone(url, dst string) (*Repository, error)
}

func NewClient

func NewClient() Client

type ClientImpl

type ClientImpl struct{}

func (*ClientImpl) Checkout

func (c *ClientImpl) Checkout(repo Repository, commit string) error

func (*ClientImpl) Clone

func (c *ClientImpl) Clone(url, dst string) (*Repository, error)

type Repository

type Repository struct {
	URL url.URL
}

func NewLocalRepository

func NewLocalRepository(path string) (*Repository, error)

func NewRepository

func NewRepository(u url.URL) Repository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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