package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

ByCmd returns the version control system for the given command name (hg, git, svn, bzr).
FromDir inspects dir and its parents to determine the version control system and code repository to use.
RepoRootForImportDynamic finds a *RepoRoot for a custom domain that's not statically known by RepoRootForImportPathStatic.
RepoRootForImportPath analyzes importPath to determine the version control system, and code repository to use.
RepoRootForImportPathStatic attempts to map importPath to a RepoRoot using the commonly-used VCS hosting sites in vcsPaths (github.com/user/dir), or from a fully-qualified importPath already containing its VCS type (foo.com/repo.git/dir) If scheme is non-empty, that scheme is forced.

# Variables

ShowCmd controls whether VCS commands are printed.
Verbose enables verbose operation logging.

# Structs

A Cmd describes how to use a version control system like Mercurial, Git, or Subversion.
RepoRoot represents a version control system, a repo, and a root of where to put it on disk.
A TagCmd describes a command to list available tags that can be passed to Cmd.TagSyncCmd.