docs: clone with --depth 1: the newest commit only, and how to get the history when you need it #41
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/ui
area/updates
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!41
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:docs/shallow-clone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On release day, git clones were one of the biggest loads on git.magicbean.dev, whose upload link was saturated. The build-from-source instructions now clone the newest commit only (
--depth 1). The same change is in Longshot's PR 214.What changed
README.md, Build from source:git clone --depth 1 ….CONTRIBUTING.md, Get started: the same, with jj's--depth 1, and one line on what needs the history (git logpast it, cutting a release withscripts/release.py) and how to get it:git fetch --unshallow --tags.Measured
A shallow clone of LongshotLauncher is 2.0 MB of
.gitagainst 2.2 MB for the full history (the repository's packs on the server). This repository is small, so the saving here is small; the change is for consistency with Longshot, where a shallow clone is about half the download (17 MB against 36 MB).Testing
git clone --depth 1of this repository from git.magicbean.dev: 2.0 MB, as above. I didn't build from that clone; the build doesn't read git (LongshotTagis passed in).python -I tests/test_launcher_core.py --longshot <Longshot checkout>: 635 checks passed.python -I tests/test_release.py: OK.jj git clone --depth.🤖 Generated with Claude Code