vcs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitBranch

func GitBranch() (string, error)

GitBranch returns the name of the current branch if the working directory is contained in a Git repository.

func GitCommit

func GitCommit() (string, error)

GitCommit returns the full SHA of the current commit if the working directory is contained in a Git repository.

func GitIsDirty

func GitIsDirty() bool

GitIsDirty returns true if and only if the current working directory is contained in a Git repository that has uncommitted changes and/or untracked files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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