git

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FailedCommandError = func(err error, args []string, output string) error {
		return errors.Wrapf(err, "%v failed: %s", args, output)
	}
	UnexpectedGitBranchOutputError = eris.New("unexpected 'git branch' output. " +
		"Current branch line should consist of 2 or more space-separated tokens")
)

Functions

func AppendTagPrefix

func AppendTagPrefix(version string) string

func PinDependencyVersion

func PinDependencyVersion(relativeRepoDir string, refName string) error

Types

type RefInfo

type RefInfo struct {
	Branch string
	Hash   string
	Tag    string
}

Contains different representations of a git ref. Hash and tag are always set, branch might be empty if the repo is in detached HEAD state.

func GetGitRefInfo

func GetGitRefInfo(relativeRepoDir string) (*RefInfo, error)

Jump to

Keyboard shortcuts

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