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
Implement
--scan-depthto 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)
--scan-depth Nis specified, search up to N levels deep.--scan-depth allis specified, search recursively without limit, stopping at.gitboundaries.--scan-depthis the only discovery-depth option;--depthMUST NOT be accepted for discovery.Notes
--scan-depthis the only supported discovery-depth flag to avoid conflicts with git's own--depth.References