Skip to content

Enhancement: Decouple .graphifyignore discovery from .git boundaries #643

Description

@Deep-Axe

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:

  1. Continue climbing the directory tree past the intended project folder.

  2. Potentially reach the user's home directory or the filesystem root.

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions