docs(contributing): clone with --depth 1: the newest commit only, and how to get the history when you need it #214
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!214
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot: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?
Why
On release day, git clones of Longshot were one of the biggest loads on git.magicbean.dev, whose upload link was saturated. Cloning the newest commit only (
--depth 1) halves each contributor's download.What changed
CONTRIBUTING.md, Get started, step 1:git clone --depth 1 …(and jj's--depth 1). A short paragraph says what still works (git pull, branches, pull requests), what needs the history (git log/git blamepast the clone, a version name from the tags, cutting a release withscripts/release.py), and how to get it:git fetch --unshallow --tags.Flags and settings
None.
Measurements
main:
2331f46(2026-11-13)this PR: docs/shallow-clone @
0ccdf27Hardware: not applicable (a docs change); clones from git.magicbean.dev to a Linux PC
Scene: not applicable
Method:
du -sh .gitofgit clone --depth 1against the size of the repository's packs on the server, after today's repackHow to reproduce:
git clone --depth 1 https://git.magicbean.dev/MagicBeanDev/Longshot.git && du -sh Longshot/.git2331f46(full clone)0ccdf27(--depth 1).gitTesting
Tested: a
git clone --depth 1of Longshot from git.magicbean.dev: 17 MB. In it,python -I nx2/version.pynames the build by its commit (2331f46 (source cb01b5a3)), as the paragraph says;scripts/check_third_party.pyuses the history only with--base. jj 0.47 hasjj git clone --depth.python -I -B tests/run_all.py: 455 passed, 2 failed, 65 skipped; both failures fail the same way onmain@2331f46on this PC:test_bake_portability(nozstandardinstalled here) andtest_display_pointer(a link error,win::rx_optionundefined).Not tested: a first build from a shallow clone (the build reads no git history beyond the version name above).
Needs other testers: None
Screenshots
Nothing on screen
Risk and rollback
A contributor who needs the history meets a shallow clone; the paragraph says how to deepen it. Reverting the commit restores the old instructions.
Reviewer notes
The game-side cost is the version name in a shallow build: a commit hash rather than
v3.0.0-rc.3-5-g…. Players' builds come from the release zips, which carryversion.txt, so they are unaffected.Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.🤖 Generated with Claude Code
Needs other testers: None, in the form the description check reads.
WIP: docs(contributing): clone with --depth 1: the newest commit only, and how to get the history when you need itto docs(contributing): clone with --depth 1: the newest commit only, and how to get the history when you need it