Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add option to change clone depth #106

Open
xaviergmail opened this issue Nov 16, 2022 · 2 comments
Open

Feature Request: Add option to change clone depth #106

xaviergmail opened this issue Nov 16, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@xaviergmail
Copy link

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.

@xaviergmail xaviergmail added the enhancement New feature or request label Nov 16, 2022
@zackproser
Copy link
Contributor

@xaviergmail this sounds super reasonable. Thanks for the report. It may take us a while to get to this, but anybody is welcome to implement this and put up a PR in the meantime.

@lindell
Copy link

lindell commented Nov 13, 2023

This is supported in a similar project I maintain called multi-gitter. You might want to check it out.

By default, it runs with a depth of 1. But any depth can be chosen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants