Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Matches ¶
Matches reports whether cwd should be included given pathFilter and strictMatch.
Algorithm (evaluated in order, stop at first match):
- Resolve pathFilter to absolute path.
- If the resolved path exists: a. Exact match: resolved == cwd b. Symlink match: realpath(resolved) == realpath(cwd) c. Resolved substring (non-strict only, min len 10): resolved in cwd or in realpath(cwd)
- Raw substring fallback (min len 3): pathFilter in cwd - Allowed in non-strict mode always. - Allowed in strict mode only when resolved path does NOT exist on disk.
If pathFilter is empty, all sessions match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.