Skip to content

Feature Request: Add option to change clone depth #106

Open
@xaviergmail

Description

@xaviergmail

Describe the solution you'd like
I would like a new --clone-depth CLI flag added, to be passed to cloneLocalRepository's git.CloneOptions.

Describe alternatives you've considered
I also considered keeping the repositories cloned in a static non-temporary directory for faster batch operations across several repos which would be faster, but this seems easier to implement.

Additional context
This would speed up running git-xargs in our org tremendously. We have ~180 repos, only a few archived but a --dry-run --skip-archived-repos with just echo hi as the script still takes 12 minutes, presumably due to large git histories with non-LFS binary data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions