git

package
v0.0.0-...-2267940 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGitRootNotFound = errors.New("git root not found")
)

Functions

func FindGitRoot

func FindGitRoot(startPath string, rw walker.ReverseWalker) (string, error)

FindGitRoot finds the root of a Git repository starting from the given path. It returns the path to the root of the Git repository or an error if the root is not found.

func GetTagCommit

func GetTagCommit(tag *object.Tag) (*object.Commit, error)

GetTagCommit returns the commit that the given tag object points to.

func TagObjectsToMap

func TagObjectsToMap(tags []*object.Tag) map[string]*object.Tag

TagObjectsToMap converts a slice of tag objects into a map where the key is the tag name and the value is the corresponding tag object.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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