git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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