Versions in this module Expand all Collapse all v1 v1.0.2 Aug 8, 2025 Changes in this version + func ReadPatterns(searchPath SearchPath, inputTree *InputTreeNode, ...) ([]gitignore.Pattern, error) + type InputTreeNode struct + Children map[string]*InputTreeNode + func NewInputTree(paths []string) *InputTreeNode + func NewInputTreeNode(splitPath []string) *InputTreeNode + func (t *InputTreeNode) AddChild(splitPath []string) + func (t *InputTreeNode) Relation(splitPath []string) Relation + type Relation int + const None + const TreeNodeIsChild + const TreeNodeIsParent + type Repo interface + IsPathIgnored func(path string, isDir bool) bool + func NewRepo(path string, inputTree *InputTreeNode) (Repo, error) + type RepoFinder struct + func NewRepoFinder(inputPaths []string) *RepoFinder + func (s *RepoFinder) FindRepo(path string) Repo + type SearchPath struct + func NewSearchPath(prefix string, path []string) SearchPath + func (s SearchPath) Abs() string + func (s SearchPath) AbsSplit() []string + func (s SearchPath) Path() []string + func (s SearchPath) WithAddedPath(path string) SearchPath