internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

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 FindGitDir(dir string) (string, error)

func GenerateVersion

func GenerateVersion(tagName string, counter int, headHash string, timestamp time.Time, opts GenerateVersionOptions) (*string, error)

GenerateVersion ...

func GitDescribe

func GitDescribe(repo git.Repository) (*string, *int, *string, error)

GitDescribe ...

func GitTagMap

func GitTagMap(repo git.Repository) (*map[string]string, error)

GitTagMap ...

func OpenRepository added in v0.4.0

func OpenRepository(dir string) (*git.Repository, error)

Types

type GenerateVersionOptions

type GenerateVersionOptions struct {
	FallbackTagName       string
	DropTagNamePrefix     bool
	PrereleaseSuffix      string
	PrereleasePrefix      string
	PrereleaseTimestamped bool
	NextRelease           string
	Format                string
}

GenerateVersionOptions ...

type SemVer

type SemVer struct {
	Prefix        string
	Major         int
	Minor         int
	Patch         int
	Prerelease    []string
	BuildMetadata []string
}

SemVer ...

func SemVerParse

func SemVerParse(str string) *SemVer

SemVerParse ...

func (*SemVer) Bump added in v0.4.0

func (v *SemVer) Bump(nextRelease string)

Bump ...

func (SemVer) Equal

func (v SemVer) Equal(v2 SemVer) bool

Equal ...

func (SemVer) String

func (v SemVer) String() string

String ...

Jump to

Keyboard shortcuts

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