gitutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShallowClone

func ShallowClone(topdir string, params ShallowCloneParams,
	logger log.DebugLogger) error

ShallowClone will make a shallow clone of a Git repository. The repository will be written to the directory specified by topdir.

Types

type ShallowCloneParams

type ShallowCloneParams struct {
	GitBranch string   // Branch to fetch.
	Patterns  []string // Patterns to fetch.
	PublicURL string   // Repository URL which is safe to log.
	RepoURL   string   // Real URL of repository.
}

Jump to

Keyboard shortcuts

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