git_utils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertRefIsReachable added in v0.5.0

func AssertRefIsReachable(repo *git.Repository, precedingRef *plumbing.Reference, headRef *plumbing.Reference, message string) error

func GetVersions added in v0.5.0

func GetVersions(repo *git.Repository) ([]*semver.Version, error)

func HashListContains

func HashListContains(hashList []plumbing.Hash, hash plumbing.Hash) bool

func RefToCommitHash added in v0.1.1

func RefToCommitHash(storer storer.EncodedObjectStorer, tagRef *plumbing.Reference) plumbing.Hash

Types

type ByHistoryDesc added in v1.1.0

type ByHistoryDesc []*object.Commit

func (ByHistoryDesc) Len added in v1.1.0

func (a ByHistoryDesc) Len() int

func (ByHistoryDesc) Less added in v1.1.0

func (a ByHistoryDesc) Less(i, j int) bool

func (ByHistoryDesc) Swap added in v1.1.0

func (a ByHistoryDesc) Swap(i, j int)

Jump to

Keyboard shortcuts

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