From 6b68de140cc960ec6729d13e089f0510d6568965 Mon Sep 17 00:00:00 2001 From: Safi Date: Fri, 1 May 2026 14:54:04 +0100 Subject: [PATCH] stop .graphifyignore walk at any VCS root or home dir, not just .git (fixes #643) --- graphify/detect.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphify/detect.py b/graphify/detect.py index a50e03ac..7543eaca 100644 --- a/graphify/detect.py +++ b/graphify/detect.py @@ -367,8 +367,10 @@ def _load_graphifyignore(root: Path) -> list[tuple[Path, str]]: line = line.strip() if line and not line.startswith("#"): patterns.append((current, line)) - # Stop climbing once we've processed the git repo root - if (current / ".git").exists(): + # Stop climbing at any VCS root or home directory + if any((current / marker).exists() for marker in (".git", ".hg", ".svn", "_darcs", ".fossil")): + break + if current == Path.home(): break parent = current.parent if parent == current: