Documentation
¶
Overview ¶
Package repositorypath defines the hard repository-membership boundary shared by source discovery and repository-wide semantic scanners.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUnsafe = errors.New("unsafe repository path")
ErrUnsafe marks a path that escapes the repository, crosses a symlinked component, or does not name the expected filesystem kind.
Functions ¶
func DirectoryIgnored ¶
DirectoryIgnored reports whether name identifies a directory that is always outside a repository's source membership.
func Ignored ¶
Ignored reports whether a normalized or platform-native repository-relative path is always outside source membership. Repository-wide scanners call it once per candidate path per file they key, so it walks the segments in place rather than allocating a split: on a large repository the allocation alone was a measurable share of an indexing run.
func ResolvePath ¶
ResolvePath resolves a repository-relative path without following symlinks in any ancestor. The leaf may be missing or itself a symlink so callers that fingerprint those states can inspect it separately.
Types ¶
This section is empty.