git

package
v0.0.0-...-9637186 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: LGPL-2.1 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, dir string, options CloneOptions) (string, error)

Clone clones the repository with the given [options] into [dir]. Returns the checked out hash.

func IsClean

func IsClean(path string) (bool, error)

func Pull

func Pull(path string, options PullOptions) error

Types

type CloneOptions

type CloneOptions struct {
	URL string
	// Order of preference: hash > branch > tag.
	Hash         string
	Branch       string
	Tag          string
	SingleBranch bool
	Depth        int
	SSHPath      string
}

type PullOptions

type PullOptions struct {
	SSHPath string
}

Jump to

Keyboard shortcuts

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