Documentation ¶
Index ¶
Constants ¶
View Source
const Unspecified = "unspecified"
Variables ¶
This section is empty.
Functions ¶
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 --first-parent" followed by "-dirty" if the repository currently has any uncommitted changes (including untracked files) as determined by "git status --porcelain". If the output starts with the character 'v' followed by a digit (0-9), then the leading 'v' is trimmed. Returns "unspecified" if the repository does not contain any tags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.