git

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 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 Commands = map[string]types.Command{
	"git/isclean": {
		Description: "Verifies that there are no uncommitted changes",
		Fn:          IsStatusClean,
	},
}

Commands is a set of commands useful for any environment.

Functions

func DirtyHeadHash added in v2.3.0

func DirtyHeadHash(ctx context.Context, repoPath string) (string, error)

DirtyHeadHash returns hash of the latest commit in the repository, adding "-dirty" suffix if there are uncommitted changes.

func HeadHash added in v2.3.0

func HeadHash(ctx context.Context, repoPath string) (string, error)

HeadHash returns hash of the latest commit in the repository.

func HeadTags added in v2.3.0

func HeadTags(ctx context.Context, repoPath string) ([]string, error)

HeadTags returns the list of tags applied to the latest commit.

func IsStatusClean

func IsStatusClean(ctx context.Context, _ types.DepsFunc) error

IsStatusClean checks that there are no uncommitted files in the repo.

func VersionFromTag added in v2.3.0

func VersionFromTag(ctx context.Context, repoPath string) (string, error)

VersionFromTag returns version taken from tag present in the commit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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