Documentation ¶
Index ¶
- Constants
- func FindGitDir(dir string) (string, error)
- func GenerateVersion(tagName string, counter int, headHash string, timestamp time.Time, ...) (*string, error)
- func GitDescribe(repo git.Repository) (*string, *int, *string, error)
- func GitTagMap(repo git.Repository) (*map[string]string, error)
- func OpenRepository(dir string) (*git.Repository, error)
- type GenerateVersionOptions
- type SemVer
Constants ¶
View Source
const ( // Prefix found in .git files that point to another location GitDirPrefix = "gitdir: " GitDirName = ".git" CommonDirName = "commondir" )
Variables ¶
This section is empty.
Functions ¶
func FindGitDir ¶ added in v0.4.0
func GenerateVersion ¶
func GenerateVersion(tagName string, counter int, headHash string, timestamp time.Time, opts GenerateVersionOptions) (*string, error)
GenerateVersion ...
func GitDescribe ¶
GitDescribe ...
func OpenRepository ¶ added in v0.4.0
Types ¶
type GenerateVersionOptions ¶
type GenerateVersionOptions struct { FallbackTagName string DropTagNamePrefix bool PrereleaseSuffix string PrereleasePrefix string PrereleaseTimestamped bool NextRelease string Format string }
GenerateVersionOptions ...
Click to show internal directories.
Click to hide internal directories.