Documentation ¶ Index ¶ func Checkout(repo *gitlib.Repository, revision string) error type RepoSpec func ParseRepoSpec(raw string) (RepoSpec, error) func (s RepoSpec) CloneURL() string func (s RepoSpec) IsLocal() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Checkout ¶ func Checkout(repo *gitlib.Repository, revision string) error Checkout updates the repository worktree to the requested revision. The revision can be provided as a full reference (refs/... path), a branch name, a tag, or any revision string understood by go-git's ResolveRevision. Types ¶ type RepoSpec ¶ type RepoSpec struct { Location string Revision string // contains filtered or unexported fields } func ParseRepoSpec ¶ func ParseRepoSpec(raw string) (RepoSpec, error) func (RepoSpec) CloneURL ¶ func (s RepoSpec) CloneURL() string func (RepoSpec) IsLocal ¶ func (s RepoSpec) IsLocal() bool Source Files ¶ View all Source files git.gospec.go Click to show internal directories. Click to hide internal directories.