git

package
v0.0.0-...-c3373f0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0, MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGitRootNotFound = errors.New("git root not found")
)

Functions

func FindGitRoot

func FindGitRoot(startPath string, rw walker.ReverseWalker) (string, error)

FindGitRoot finds the root of a Git repository starting from the given path. It returns the path to the root of the Git repository or an error if the root is not found.

func InCI

func InCI() bool

InCI returns true if the code is running in a CI environment.

Types

type DefaultRepoLoader

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

func NewCustomDefaultRepoLoader

func NewCustomDefaultRepoLoader(fs afero.Fs) DefaultRepoLoader

func NewDefaultRepoLoader

func NewDefaultRepoLoader() DefaultRepoLoader

func (*DefaultRepoLoader) Load

func (r *DefaultRepoLoader) Load(path string) (*gg.Repository, error)

type RepoLoader

type RepoLoader interface {
	Load(path string) (*gg.Repository, error)
}

Jump to

Keyboard shortcuts

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