git

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidHead = Error("invalid head response")
	ErrInvalidRefs = Error("invalid refs response")
	ErrNoHash      = Error("no hash found")
)

Variables

This section is empty.

Functions

func GetLatestCommit

func GetLatestCommit(url string) (string, error)

GetLatestCommit gets the latest head commit hash for the given remote git repo.

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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