git

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 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.

func GitPath added in v0.2.1

func GitPath(g *Git, defaultPath string) string

GitPath returns the given default path when Git.Path is empty. GitPath returns Git.Path 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.
	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