git

package
v0.0.0-...-6a1c4ee Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BranchHead

func BranchHead(repoURL, branch string) (string, error)

branchHead finds the HEAD commit hash of the given branch in the given repository.

func CloneRepo

func CloneRepo(url, dstPath, rev string) error

CloneRepo clones the repository in the given URL to the given dstPath and checks out the given revision. revision can be 'main', a release version (e.g. 1.4.1), a commit hash (e.g. 34edf09a) or a PR (e.g. PR-9486).

func Tag

func Tag(repoURL, tag string) (string, error)

tag finds the commit hash of the given tag in the given repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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