Skip to content

Speed up getDocs clones with shallow, single-branch fetch - #383

Merged
mbuechse merged 4 commits into
mainfrom
getdocs-shallow-clone
Jul 20, 2026
Merged

Speed up getDocs clones with shallow, single-branch fetch#383
mbuechse merged 4 commits into
mainfrom
getdocs-shallow-clone

Conversation

@gerbsen

@gerbsen gerbsen commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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.

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
gerbsen force-pushed the getdocs-shallow-clone branch from 7bf240d to 063e9ef Compare July 17, 2026 15:07
@mbuechse

Copy link
Copy Markdown
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 mbuechse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally approve, with a suggestion for simplification. Out of curiosity: what role did Opus play in this very simple change?

Comment thread getDocs.js Outdated
Co-authored-by: Matthias Büchse <matthias.buechse@alasca.cloud>
Signed-off-by: gerbsen <1186245+gerbsen@users.noreply.github.com>
@mbuechse
mbuechse merged commit c8626b1 into main Jul 20, 2026
8 checks passed
@mbuechse
mbuechse deleted the getdocs-shallow-clone branch July 20, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants