gitutil

package
v0.0.0-...-dd43fab Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefCommit

func RefCommit(ctx context.Context, remote, ref string) (string, error)

RefCommit fetches the latest commit of the reference in the given remote. If the reference is a commit hash, it will be returned as is, otherwise it will try to fetch a latest reference matching the given ref. If the ref ends with a *, it will be treated as a glob, and the latest reference matching the glob will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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