git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone(ctx context.Context, remote, branchOrTag, outDir string) error

Clone checks out the given branch or tag from the given repo. It uses the git CLI already installed on the system.

To optimize storage and bandwidth, the full git history is not fetched.

"remote" may be any format accepted by git, such as https://github.com/abcxyz/abc.git or git@github.com:abcxyz/abc.git .

func Tags

func Tags(ctx context.Context, remote string) ([]string, error)

Tags looks up the tags in the given remote repo. The length of each returned string is guaranteed to be >0.

"remote" may be any format accepted by git, such as https://github.com/abcxyz/abc.git or git@github.com:abcxyz/abc.git .

Types

This section is empty.

Jump to

Keyboard shortcuts

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