Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindGitRepos ¶
func FindGitRepos( roots []string, dirignore []string, ) (gitReposPaths []string, warnings []string)
FindGitRepos walks each root and returns directories that look like Git worktrees. Simple rules: - A directory containing `.git` (directory) is a repo root. - Or a `.git` file whose contents include "gitdir:" (worktrees/submodules). - When we find a repo root, we SkipDir to avoid descending into nested repos (for now).
Types ¶
type IgnoreMatcher ¶
type IgnoreMatcher struct {
// contains filtered or unexported fields
}
IgnoreMatcher holds compiled patterns and the normalized scan roots.
func NewIgnoreMatcher ¶
func NewIgnoreMatcher(roots []string, raw []string) *IgnoreMatcher
NewIgnoreMatcher normalizes and post-processes patterns for friendlier DX.
func (*IgnoreMatcher) ShouldIgnore ¶
func (m *IgnoreMatcher) ShouldIgnore(absPath string) bool
ShouldIgnore reports whether absPath should be ignored. absPath must be absolute or at least rooted; it is normalized to forward slashes.
Click to show internal directories.
Click to hide internal directories.