Skip to content

Support for automatically applying .gitignore rules #71

Description

@aedrax

Currently, avoiding unwanted files requires manually duplicating paths into the --exclude flag. Since the repository's .gitignore is already doing the heavy lifting to filter out build artifacts, virtual environments, and other noise, it would be great if CodeWiki could just parse and apply those rules automatically before building the call graph.

Right now, my workaround is to write a custom shell script to parse the .gitignore, format it into a comma-separated list, and dynamically feed it to codewiki generate --exclude. While that works, having native support would be much cleaner and stop the tool from accidentally wasting LLM tokens on files git already knows to ignore.

Maybe add a --use-gitignore flag, or just have it enabled by default alongside the builtin excludes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions