sggit

package
v0.280.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command added in v0.90.0

func Command(ctx context.Context, args ...string) *exec.Cmd

Command returns an exec.Cmd for invoking git.

func SHA added in v0.84.0

func SHA(ctx context.Context) string

SHA returns the full SHA of the current HEAD.

func ShortSHA added in v0.84.0

func ShortSHA(ctx context.Context) string

ShortSHA returns the short SHA of the current HEAD.

func Tags added in v0.164.0

func Tags(ctx context.Context) []string

Tags returns the tags of the current HEAD.

func VerifyNoDiff

func VerifyNoDiff(ctx context.Context) error

VerifyNoDiff returns an error if the current working tree has a diff.

Types

This section is empty.

Jump to

Keyboard shortcuts

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