mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-17 12:57:18 +00:00
stop .graphifyignore walk at any VCS root or home dir, not just .git (fixes #643)
This commit is contained in:
+4
-2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user