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.