git

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.2

type Config struct {
	// Prefix to add to version strings
	Prefix string

	// Only look at tags below version
	Below *semver.Version

	// Include ReleaseCandidate Version
	IncludeRC bool
}

type Git

type Git struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string, cfg Config) (*Git, error)

func (*Git) Highest added in v0.0.9

func (g *Git) Highest() semver.Version

func (*Git) History added in v0.0.4

func (g *Git) History(prefix string) (string, error)

func (*Git) Increment

func (g *Git) Increment(major, minor, patch, dev bool, rc bool) (semver.Version, error)

Jump to

Keyboard shortcuts

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