-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
The git plugin already supports shallow cloning, but for projects with large repos that still need git history, there are much faster options.
eg. it would be ideal if the git plugin supported the --filter option, such that the options described in the linked articles/videos could be used (eg. --filter=tree:0) which can dramatically reduce cloning speeds of large repos.
https://www.youtube.com/watch?v=aolI_Rz0ZqY
https://blog.gitbutler.com/fosdem-git-talk/
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
The implementation would need to consider what should be done with command line git implementations that do not support the --filter argument, like command line git 2.20 that is included with Debian 10. Debian 10 won't reach end of life until 2025, so it will continue to be supported by Jenkins until then.