Skip to content

Add support for indexing of symlinks #2237

Description

@N-Olbert

What problem does this solve?

This is a follow-up to #1815, whose most important point (the silent ignorance of symlinks) has already been fixed.

Currently, index_repository does not follow directory symlinks or NTFS junctions when walking the repo tree. Files reachable only through such a reparse point are completely absent from the resulting graph. From the tool's perspective, a symlink-directory (and everything under it) simply doesn't exist. This makes it quite difficult to index a codebase that uses linked/shared source directories without physically duplicating or hard-linking files.

Proposed solution

Allow the indexing of symlinks (probably via opt-in, so it is the job of the user to ensure no circular paths occur).

Alternatives considered

No response

Confirmations

  • I searched existing issues and this is not a duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions