perf: --depth=1 shallow clone for end users #203

Open
agilgur5 wants to merge 1 commits from agilgur5/perf-clone-depth into main
agilgur5 commented 2024-12-22 16:57:03 -05:00 (Migrated from github.com)

Summary

Speed up downloads of the script with a more efficient shallow clone

Details

  • rather than cloning the entire history of the repo, can do a shallow clone with a depth of 1

    • this should make it more efficient, particularly when there are many commits or many large commits
    • since the history is unused by regular end users, there is no need to fetch/download it
  • also add syntax highlighting to the first code block, matching the second one

References

This is largely equivalent to https://github.com/ryanrudolfoba/SteamOS-Waydroid-Installer/pull/198

## Summary Speed up downloads of the script with a more efficient shallow clone ## Details - rather than cloning the entire history of the repo, can do a shallow clone with a [depth](https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-code--depthcodeemltdepthgtem) of 1 - this should make it more efficient, particularly when there are many commits or many large commits - since the history is unused by regular end users, there is no need to fetch/download it - also add syntax highlighting to the first code block, matching the second one ## References This is largely equivalent to https://github.com/ryanrudolfoba/SteamOS-Waydroid-Installer/pull/198
huakim commented 2025-04-07 03:06:03 -04:00 (Migrated from github.com)

Thanks! I have merged this to my forked repository

Thanks! I have merged this to my forked repository
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin agilgur5/perf-clone-depth:agilgur5/perf-clone-depth
git checkout agilgur5/perf-clone-depth
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wbruno/waydroid_script#203