Skip to content

Implement depth option for multi-repo discovery #14

Description

@rsanheim

Implement --scan-depth to control how deep we search for git repositories. Currently hardcoded to depth 1 (immediate subdirectories only).

Spec (from docs/SPEC.md §2.1 & §6.4)

  • Default search depth MUST be 1 (immediate subdirectories only).
  • When --scan-depth N is specified, search up to N levels deep.
  • When --scan-depth all is specified, search recursively without limit, stopping at .git boundaries.
  • Option MUST accept a positive integer or "all"; default is 1.
  • --scan-depth is the only discovery-depth option; --depth MUST NOT be accepted for discovery.

Notes

--scan-depth is the only supported discovery-depth flag to avoid conflicts with git's own --depth.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions