Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2014 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGitDepth = 50
)

Variables

This section is empty.

Functions

func GitDepth

func GitDepth(g *Git) int

GitDepth returns GitDefaultDepth when Git.Depth is empty. GitDepth returns Git.Depth when it is not empty.

Types

type Git

type Git struct {
	// Depth options instructs git to create a shallow
	// clone with a history truncated to the specified
	// number of revisions.
	Depth *int `yaml:"depth,omitempty"`

	// The name of a directory to clone into.
	// TODO this still needs to be implemented. this field is
	//      critical for forked Go projects, that need to clone
	//      to a specific repository.
	Path string `yaml:"path,omitempty"`
}

Git stores the configuration details for executing Git commands.

Jump to

Keyboard shortcuts

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