Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TreeNode ¶
type VCSMatcher ¶ added in v1.9.14
type VCSMatcher struct {
// contains filtered or unexported fields
}
VCSMatcher handles VCS ignore pattern matching for a git repository
func NewVCSMatcher ¶ added in v1.9.14
func NewVCSMatcher(basePath string) (*VCSMatcher, error)
NewVCSMatcher creates a new VCS matcher for the given path. It searches for a git repository and loads .gitignore patterns. Returns (nil, nil) if no git repository is found - this is not an error.
func (*VCSMatcher) RepoRoot ¶ added in v1.9.14
func (m *VCSMatcher) RepoRoot() string
RepoRoot returns the repository root path for this matcher
func (*VCSMatcher) ShouldIgnore ¶ added in v1.9.14
func (m *VCSMatcher) ShouldIgnore(path string) bool
ShouldIgnore checks if a path should be ignored based on VCS rules. It checks both .git directories and .gitignore patterns.
Click to show internal directories.
Click to hide internal directories.