{"modulePath":"github.com/Coding/drone","version":"v0.3.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package git\n\n## Constants\n\n```go\nconst (\n\tDefaultGitDepth = 50\n)\n```\n\n## Functions\n\n```go\nfunc GitDepth(g *Git) int\n```\nGitDepth returns GitDefaultDepth when Git.Depth is empty. GitDepth returns Git.Depth when it is not empty.\n\n```go\nfunc GitPath(g *Git, defaultPath string) string\n```\nGitPath returns the given default path when Git.Path is empty. GitPath returns Git.Path when it is not empty.\n\n## Types\n\n```go\ntype Git struct {\n\t// Depth options instructs git to create a shallow\n\t// clone with a history truncated to the specified\n\t// number of revisions.\n\tDepth *int `yaml:\"depth,omitempty\"`\n\n\t// The name of a directory to clone into.\n\tPath *string `yaml:\"path,omitempty\"`\n}\n```\nGit stores the configuration details for executing Git commands.\n\n","path":"github.com/Coding/drone/shared/build/git","name":"git","synopsis":"","isRedistributable":true}
