gitclient

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Embedded

func Embedded(ctx context.Context, repo string, directory string) error

Embedded go-native git client which clones from git repository from default branch with minimal depth (1). Reports progress to STDERR. Supports submodules.

func Native

func Native(ctx context.Context, repo string, directory string) error

Native git client (uses git binary) which clones from git repository from default branch with minimal depth (1). Send both outputs to STDERR. Supports submodules.

Types

type Client

type Client func(ctx context.Context, repo string, directory string) error

Client for GIT.

func Auto

func Auto(ctx context.Context) Client

Auto select git client. In case Git binary exists and version is at least 2.13+ than use native, otherwise - embedded.

Jump to

Keyboard shortcuts

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