Documentation ¶
Index ¶
Constants ¶
View Source
const Unspecified = "unspecified"
Variables ¶
This section is empty.
Functions ¶
func IsSnapshotVersion ¶
func ProjectBranch ¶
func ProjectRevision ¶
func ProjectVersion ¶
ProjectVersion returns the version string for the git repository that the provided directory is in. The output is the output of "git describe --tags" followed by ".dirty" if the repository currently has any uncommitted changes. Returns an error if the provided path is not in a git root or if the git repository has no commits or no tags.
Types ¶
type ProjectInfo ¶
func NewProjectInfo ¶
func NewProjectInfo(gitDir string) (ProjectInfo, error)
Click to show internal directories.
Click to hide internal directories.