gitutils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInCheckout     = errors.New("failed to checkout")
	ErrInGitLog       = errors.New("failed to get git log")
	ErrCheckingRef    = errors.New("failed to check ref")
	ErrGetWorkingTree = errors.New("failed to get working tree")
)
View Source
var (
	ErrGetTag   = fmt.Errorf("error getting tag")
	ErrOpenRepo = fmt.Errorf("error opening repo")
)

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Message string
	Date    time.Time
	Author  string
	Hash    string
}

func GetCommits

func GetCommits(path, sourceBranch, targetBranch string) ([]Commit, error)

type RepoTags

type RepoTags struct {
	Latest *semver.Version
	All    []*semver.Version
}

func GetTags

func GetTags(path string) (*RepoTags, error)

func (*RepoTags) GetVersionsArray

func (r *RepoTags) GetVersionsArray() []string

Jump to

Keyboard shortcuts

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