Documentation ¶
Overview ¶
Package repos provides methods for repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repo ¶
type Repo struct { VCS *VCS // URL is the repository URL, including scheme URL string // ImportPath is the import path corresponding to the root of the repository ImportPath string }
Repo RepoRoot
func ImportDynamic ¶
ImportDynamic returns a new Repo.
func ImportPath ¶
ImportPath returns a new Repo.
type VCS ¶
type VCS struct { *vcs.Cmd IdentifyCmd string DescribeCmd string DiffCmd string // run in sandbox repos ExistsCmd string }
VCS represents a version control system for a repository.
func Dir ¶
Dir inspects dir and its parents to determine the version control system and code repository to use. On return, root is the import path corresponding to the root of the repository (thus root is a prefix of importPath).
Click to show internal directories.
Click to hide internal directories.