The current _load_graphifyignore implementation relies exclusively on the presence of a .git/ directory to stop its upward search for ignore rules.
The Problem
Currently, graphify assumes that every project is managed by Git. If a user runs the tool on a directory that is not a Git repository (e.g., a simple folder of research papers or a project using Mercurial/SVN), the logic will:
-
Continue climbing the directory tree past the intended project folder.
-
Potentially reach the user's home directory or the filesystem root.
-
Accidentally pick up and apply .graphifyignore rules from unrelated projects found higher up in the hierarchy.
This makes the tool less predictable when used outside of a strictly Git-centric workflow.
The current
_load_graphifyignoreimplementation relies exclusively on the presence of a.git/directory to stop its upward search for ignore rules.The Problem
Currently,
graphifyassumes that every project is managed by Git. If a user runs the tool on a directory that is not a Git repository (e.g., a simple folder of research papers or a project using Mercurial/SVN), the logic will:Continue climbing the directory tree past the intended project folder.
Potentially reach the user's home directory or the filesystem root.
Accidentally pick up and apply
.graphifyignorerules from unrelated projects found higher up in the hierarchy.This makes the tool less predictable when used outside of a strictly Git-centric workflow.