gruntwork-io / gruntwork-io/git-xargs
Feature Request: Add option to change clone depth
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.