git

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package git provides methods to handle Git.

Index

Constants

View Source
const (
	// Name is the name of this VCS.
	Name = "git"
	// Ext of a git repository.
	Ext = ".git"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VCS

type VCS struct {
	// contains filtered or unexported fields
}

VCS is a Git PrintVersion Control VCS.

func New

func New(client vcs.ClientChooser, auth vcs.BasicAuthentifier) *VCS

New returns a new instance of VCS.

func (*VCS) CanFetch

func (s *VCS) CanFetch(_ string) bool

CanFetch implements the vcs.VCS interface.

func (*VCS) FetchPath

func (s *VCS) FetchPath(ctx context.Context, path string) (semver.Tags, error)

FetchPath implements the vcs.VCS interface.

func (*VCS) FetchURL

func (s *VCS) FetchURL(ctx context.Context, url string) (semver.Tags, error)

FetchURL implements the vcs.VCS interface.

Jump to

Keyboard shortcuts

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