gitutil

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommitIdOfRef added in v0.3.3

func GetCommitIdOfRef(topdir, ref string) (string, error)

GetCommitIdOfRef will return the Commit ID of the specified reference.

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