From 15372c5395f1da0d0f9486e3f7d4fa8f961b4893 Mon Sep 17 00:00:00 2001 From: Stanley Shen Date: Wed, 14 Oct 2026 12:44:09 -0700 Subject: [PATCH] Tidy wording and comments Co-Authored-By: Claude Opus 4.8 --- skilljail/classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skilljail/classes.py b/skilljail/classes.py index a5c0fca..d61ce3b 100644 --- a/skilljail/classes.py +++ b/skilljail/classes.py @@ -103,7 +103,7 @@ def _glob_component_hits(path: str, name_pattern: str) -> tuple[bool, bool]: """For ``**/name`` patterns. Returns (rule_inside_or_exact, rule_covers). ``name_pattern`` may be multi-component (``.git/hooks``). - A path is "inside" if some suffix of its components starts with the pattern components. + A path is "inside" if the pattern components appear as a contiguous run in its components. A path "covers" the pattern if it is a parent of a directory that *could* contain it. Only very broad roots (home or '/') count, and the caller handles those, so the second value returned here is always False.