Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoGitRepoFound = errors.New("no git repository found")
)
Functions ¶
func CurrentCommit ¶ added in v0.11.152
Types ¶
type Repo ¶
type Repo struct {
Path string `json:"path"`
}
Repo represents the path of a given git repository.
func FindRepoFromPath ¶
func FindRepoInSubtree ¶ added in v0.11.195
FindRepoInSubtree finds the git repository in the subtree specified by path. In contrast to FindRepoFromPath, this functions decends down into a directory, and returns the first repository it finds.
type RepoFinder ¶
type RepoFinder struct{}
RepoFinder is a wrapper for finding the root path of a git repository.
Click to show internal directories.
Click to hide internal directories.