Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrGitRootNotFound = errors.New("git root not found")
)
Functions ¶
func FindGitRoot ¶
func FindGitRoot(startPath string, rw walker.ReverseWalker) (string, error)
FindGitRoot finds the root of a Git repository starting from the given path. It returns the path to the root of the Git repository or an error if the root is not found.
Types ¶
type DefaultRepoLoader ¶
type DefaultRepoLoader struct {
// contains filtered or unexported fields
}
func NewCustomDefaultRepoLoader ¶
func NewCustomDefaultRepoLoader(fs afero.Fs) DefaultRepoLoader
func NewDefaultRepoLoader ¶
func NewDefaultRepoLoader() DefaultRepoLoader
func (*DefaultRepoLoader) Load ¶
func (r *DefaultRepoLoader) Load(path string) (*gg.Repository, error)
type RepoLoader ¶
type RepoLoader interface {
Load(path string) (*gg.Repository, error)
}
Click to show internal directories.
Click to hide internal directories.