Speed up getDocs clones with shallow, single-branch fetch - #383
Merged
Conversation
getDocs.js only needs a snapshot of each upstream repo's docs, but it did a full clone (entire history, all branches). Add --depth 1 and --single-branch so each clone transfers only the latest commit of the default branch, cutting fetch time and bandwidth noticeably for the larger source repositories. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Daniel Gerber <394442-gerbsen@users.noreply.gitlab.com>
gerbsen
force-pushed
the
getdocs-shallow-clone
branch
from
July 17, 2026 15:07
7bf240d to
063e9ef
Compare
Contributor
|
This is a very welcome improvement!! Thanks! Can you update the branch so it can be merged? |
Signed-off-by: gerbsen <1186245+gerbsen@users.noreply.github.com>
mbuechse
approved these changes
Jul 20, 2026
mbuechse
left a comment
Contributor
There was a problem hiding this comment.
Generally approve, with a suggestion for simplification. Out of curiosity: what role did Opus play in this very simple change?
Co-authored-by: Matthias Büchse <matthias.buechse@alasca.cloud> Signed-off-by: gerbsen <1186245+gerbsen@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getDocs.js only needs a snapshot of each upstream repo's docs, but it did a full clone (entire history, all branches). Add
--depth 1and--single-branchso each clone transfers only the latest commit of the default branch, cutting fetch time and bandwidth noticeably for the larger source repositories.