git

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package git provides functionalities to hydrate the configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.3.0

func Clone(url string, ref string) (string, *git.Repository, error)

Clone clones a repository.

func Versions added in v0.3.0

func Versions(r *git.Repository) ([]string, error)

Versions returns all the versions up to HEAD in the repository.

Types

type ModuleFinder added in v0.3.0

type ModuleFinder struct{}

ModuleFinder finds modules in a repository.

func NewModuleFinder added in v0.3.0

func NewModuleFinder() *ModuleFinder

NewModuleFinder returns a new module finder.

func (*ModuleFinder) Find added in v0.3.0

func (f *ModuleFinder) Find(loc, ref string) (map[module.Path]module.Version, error)

Find finds modules in a repository.

Jump to

Keyboard shortcuts

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