Open
Description
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.