Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRepoURLUnknownProtocol = errors.New("could not match repo url to a valid protocol")
)
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
Directory represents a path on the local filesystem where cloned repositories can be stored.
func NewDirectory ¶
NewDirectory returns a new Directory object for the provided path.
func (Directory) AllRepoPaths ¶
AllRepoPaths returns the paths of all repos matching the given prefix path. If the repository is bare, the top-level root directory is chosen (the one containing .bare).
func (Directory) AllRepos ¶
AllRepos returns a git.Repository to all repositories matching the given prefix path. If the repository is bare, the worktree of the default branch is chosen.
Click to show internal directories.
Click to hide internal directories.