git

package
v0.0.0-...-3473513 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinVersionGitAccept    = 2
	MinSubVersionGitAccept = 0o1
)

Variables

View Source
var (
	// ErrMinVersion is the error logged when the installed Git version is not the minimum supported.
	ErrMinVersion = fmt.Errorf("%v.%v", MinVersionGitAccept, MinSubVersionGitAccept)

	// ErrGitNotInstalled occurs when Git is not installed.
	ErrGitNotInstalled = errors.New("git not found. Please check and try again")

	// ErrGitLowerVersion occur when the installed Git version is not the minimum supported.
	ErrGitLowerVersion = errors.New("git version is lower of 2.01. Please check and try again")
)

Functions

func Validate

func Validate() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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