git

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRepository

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

Types

type Config

type Config struct {
	TagPrefix  string
	CheckDirty bool
}

type DescribeInfo

type DescribeInfo struct {
	Commit            *object.Commit
	Tag               *object.Tag
	AdditionalCommits int
	Dirty             bool
}

type Helper

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

func NewHelper

func NewHelper(repo *git.Repository) *Helper

func (*Helper) Describe

func (helper *Helper) Describe(tagPrefix string, checkDirty bool) (*DescribeInfo, error)

func (*Helper) GetTags

func (helper *Helper) GetTags() ([]*object.Tag, error)

type Resolver

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

func New

func New(config Config, formatter formatter.Formatter) *Resolver

func (*Resolver) Resolve

func (resolver *Resolver) Resolve() (*model.VersionInfo, error)

Jump to

Keyboard shortcuts

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